1/*
2* "git annotate" builtin alias
3*
4* Copyright (C) 2006 Ryan Anderson
5*/
6#include "git-compat-util.h"
7#include "builtin.h"
8#include "argv-array.h"
910
int cmd_annotate(int argc, const char **argv, const char *prefix)
11{
12struct argv_array args = ARGV_ARRAY_INIT;
13int i;
1415
argv_array_pushl(&args, "annotate", "-c", NULL);
1617
for (i = 1; i < argc; i++) {
18argv_array_push(&args, argv[i]);
19}
2021
return cmd_blame(args.argc, args.argv, prefix);
22}