builtin/rebase: fix leaking `commit.gpgsign` value
[git/gitster.git] / builtin / annotate.c
blob58ff977a2314e2878ee0c7d3bcd9874b71bfdeef
1 /*
2 * "git annotate" builtin alias
4 * Copyright (C) 2006 Ryan Anderson
5 */
6 #include "git-compat-util.h"
7 #include "builtin.h"
8 #include "strvec.h"
10 int cmd_annotate(int argc, const char **argv, const char *prefix)
12 struct strvec args = STRVEC_INIT;
13 int i;
15 strvec_pushl(&args, "annotate", "-c", NULL);
17 for (i = 1; i < argc; i++) {
18 strvec_push(&args, argv[i]);
21 return cmd_blame(args.nr, args.v, prefix);