2006-10-09 14:32:05 +04:00
|
|
|
/*
|
|
|
|
* "git annotate" builtin alias
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Ryan Anderson
|
|
|
|
*/
|
|
|
|
#include "git-compat-util.h"
|
2006-11-11 00:36:44 +03:00
|
|
|
#include "builtin.h"
|
2006-10-09 14:32:05 +04:00
|
|
|
|
|
|
|
int cmd_annotate(int argc, const char **argv, const char *prefix)
|
|
|
|
{
|
|
|
|
const char **nargv;
|
|
|
|
int i;
|
|
|
|
nargv = xmalloc(sizeof(char *) * (argc + 2));
|
|
|
|
|
2007-02-06 12:52:04 +03:00
|
|
|
nargv[0] = "annotate";
|
2006-10-09 14:32:05 +04:00
|
|
|
nargv[1] = "-c";
|
|
|
|
|
|
|
|
for (i = 1; i < argc; i++) {
|
|
|
|
nargv[i+1] = argv[i];
|
|
|
|
}
|
|
|
|
nargv[argc + 1] = NULL;
|
|
|
|
|
2006-11-11 00:36:44 +03:00
|
|
|
return cmd_blame(argc + 1, nargv, prefix);
|
2006-10-09 14:32:05 +04:00
|
|
|
}
|
|
|
|
|