Revision 55dcc2ebad1b3ed4a6912f6f401f63cd3c71026f authored by Junio C Hamano on 10 January 2012, 22:24:01 UTC, committed by Junio C Hamano on 10 January 2012, 22:24:01 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 ...