1/*
2* "git annotate" builtin alias
3*
4* Copyright (C) 2006 Ryan Anderson
5*/
6#include "git-compat-util.h"
7#include "exec_cmd.h"
89
int cmd_annotate(int argc, const char **argv, const char *prefix)
10{
11const char **nargv;
12int i;
13nargv = xmalloc(sizeof(char *) * (argc + 2));
1415
nargv[0] = "blame";
16nargv[1] = "-c";
1718
for (i = 1; i < argc; i++) {
19nargv[i+1] = argv[i];
20}
21nargv[argc + 1] = NULL;
2223
return execv_git_cmd(nargv);
24}
25