Staging
v0.5.1
v0.5.1
Revision 8ceca74a39788eeda64e9aa625fdebaad219ab42 authored by J. Bruce Fields on 05 June 2007, 22:42:58 UTC, committed by J. Bruce Fields on 10 June 2007, 20:38:50 UTC
I forgot to give an ID for this section. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
1 parent 1da158e
builtin-annotate.c
/*
* "git annotate" builtin alias
*
* Copyright (C) 2006 Ryan Anderson
*/
#include "git-compat-util.h"
#include "builtin.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] = "annotate";
nargv[1] = "-c";
for (i = 1; i < argc; i++) {
nargv[i+1] = argv[i];
}
nargv[argc + 1] = NULL;
return cmd_blame(argc + 1, nargv, prefix);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...