]> git.ipfire.org Git - thirdparty/git.git/blame - builtin/annotate.c
Git 2.45
[thirdparty/git.git] / builtin / annotate.c
CommitLineData
f789e347
RA
1/*
2 * "git annotate" builtin alias
3 *
4 * Copyright (C) 2006 Ryan Anderson
5 */
6#include "git-compat-util.h"
a19f901d 7#include "builtin.h"
dbbcd44f 8#include "strvec.h"
f789e347
RA
9
10int cmd_annotate(int argc, const char **argv, const char *prefix)
11{
22f9b7f3 12 struct strvec args = STRVEC_INIT;
f789e347 13 int i;
f789e347 14
22f9b7f3 15 strvec_pushl(&args, "annotate", "-c", NULL);
f789e347
RA
16
17 for (i = 1; i < argc; i++) {
22f9b7f3 18 strvec_push(&args, argv[i]);
f789e347 19 }
f789e347 20
d70a9eb6 21 return cmd_blame(args.nr, args.v, prefix);
f789e347 22}