Provide better feedback for the untracked only case in status output
[git/jr.git] / builtin-annotate.c
blob57c46840d542f31dd4e42455140fc901f1eeb671
1 /*
2 * "git annotate" builtin alias
4 * Copyright (C) 2006 Ryan Anderson
5 */
6 #include "git-compat-util.h"
7 #include "builtin.h"
9 int cmd_annotate(int argc, const char **argv, const char *prefix)
11 const char **nargv;
12 int i;
13 nargv = xmalloc(sizeof(char *) * (argc + 2));
15 nargv[0] = "blame";
16 nargv[1] = "-c";
18 for (i = 1; i < argc; i++) {
19 nargv[i+1] = argv[i];
21 nargv[argc + 1] = NULL;
23 return cmd_blame(argc + 1, nargv, prefix);