]> git.ipfire.org Git - thirdparty/git.git/blame - builtin/annotate.c
Merge branch 'js/update-index-ignore-removal-for-skip-worktree'
[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"
8c2cfa55 8#include "argv-array.h"
f789e347
RA
9
10int cmd_annotate(int argc, const char **argv, const char *prefix)
11{
8c2cfa55 12 struct argv_array args = ARGV_ARRAY_INIT;
f789e347 13 int i;
f789e347 14
8c2cfa55 15 argv_array_pushl(&args, "annotate", "-c", NULL);
f789e347
RA
16
17 for (i = 1; i < argc; i++) {
8c2cfa55 18 argv_array_push(&args, argv[i]);
f789e347 19 }
f789e347 20
8c2cfa55 21 return cmd_blame(args.argc, args.argv, prefix);
f789e347 22}