You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
446 B
25 lines
446 B
18 years ago
|
/*
|
||
|
* "git annotate" builtin alias
|
||
|
*
|
||
|
* Copyright (C) 2006 Ryan Anderson
|
||
|
*/
|
||
|
#include "git-compat-util.h"
|
||
18 years ago
|
#include "builtin.h"
|
||
18 years ago
|
|
||
|
int cmd_annotate(int argc, const char **argv, const char *prefix)
|
||
|
{
|
||
|
const char **nargv;
|
||
|
int i;
|
||
|
nargv = xmalloc(sizeof(char *) * (argc + 2));
|
||
|
|
||
18 years ago
|
nargv[0] = "annotate";
|
||
18 years ago
|
nargv[1] = "-c";
|
||
|
|
||
|
for (i = 1; i < argc; i++) {
|
||
|
nargv[i+1] = argv[i];
|
||
|
}
|
||
|
nargv[argc + 1] = NULL;
|
||
|
|
||
18 years ago
|
return cmd_blame(argc + 1, nargv, prefix);
|
||
18 years ago
|
}
|