2006-10-09 12:32:05 +02:00
|
|
|
/*
|
|
|
|
* "git annotate" builtin alias
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Ryan Anderson
|
|
|
|
*/
|
|
|
|
#include "git-compat-util.h"
|
2006-11-10 22:36:44 +01:00
|
|
|
#include "builtin.h"
|
2006-10-09 12:32:05 +02: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 10:52:04 +01:00
|
|
|
nargv[0] = "annotate";
|
2006-10-09 12:32:05 +02:00
|
|
|
nargv[1] = "-c";
|
|
|
|
|
|
|
|
for (i = 1; i < argc; i++) {
|
|
|
|
nargv[i+1] = argv[i];
|
|
|
|
}
|
|
|
|
nargv[argc + 1] = NULL;
|
|
|
|
|
2006-11-10 22:36:44 +01:00
|
|
|
return cmd_blame(argc + 1, nargv, prefix);
|
2006-10-09 12:32:05 +02:00
|
|
|
}
|
|
|
|
|