Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove git-annotate.perl and create a builtin-alias for git-blame
Signed-off-by: Ryan Anderson <ryan@michonline.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
- Loading branch information
Showing
5 changed files
with
29 additions
and
709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* "git annotate" builtin alias | ||
* | ||
* Copyright (C) 2006 Ryan Anderson | ||
*/ | ||
#include "git-compat-util.h" | ||
#include "exec_cmd.h" | ||
|
||
int cmd_annotate(int argc, const char **argv, const char *prefix) | ||
{ | ||
const char **nargv; | ||
int i; | ||
nargv = xmalloc(sizeof(char *) * (argc + 2)); | ||
|
||
nargv[0] = "blame"; | ||
nargv[1] = "-c"; | ||
|
||
for (i = 1; i < argc; i++) { | ||
nargv[i+1] = argv[i]; | ||
} | ||
nargv[argc + 1] = NULL; | ||
|
||
return execv_git_cmd(nargv); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.