Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (20 sloc) 0.446 kb
f789e34 @pugmajere Remove git-annotate.perl and create a builtin-alias for git-blame
pugmajere authored
1 /*
2 * "git annotate" builtin alias
3 *
4 * Copyright (C) 2006 Ryan Anderson
5 */
6 #include "git-compat-util.h"
a19f901 git-annotate: no need to exec blame; it is built-in now.
Junio C Hamano authored
7 #include "builtin.h"
f789e34 @pugmajere Remove git-annotate.perl and create a builtin-alias for git-blame
pugmajere authored
8
9 int cmd_annotate(int argc, const char **argv, const char *prefix)
10 {
11 const char **nargv;
12 int i;
13 nargv = xmalloc(sizeof(char *) * (argc + 2));
14
e68989a annotate: fix for cvsserver.
Junio C Hamano authored
15 nargv[0] = "annotate";
f789e34 @pugmajere Remove git-annotate.perl and create a builtin-alias for git-blame
pugmajere authored
16 nargv[1] = "-c";
17
18 for (i = 1; i < argc; i++) {
19 nargv[i+1] = argv[i];
20 }
21 nargv[argc + 1] = NULL;
22
a19f901 git-annotate: no need to exec blame; it is built-in now.
Junio C Hamano authored
23 return cmd_blame(argc + 1, nargv, prefix);
f789e34 @pugmajere Remove git-annotate.perl and create a builtin-alias for git-blame
pugmajere authored
24 }
Something went wrong with that request. Please try again.