Staging
v0.7.0
v0.7.0
Revision 6ba78238a824282816944550edc4297dd2808a72 authored by 李鸿 on 16 December 2007, 04:53:26 UTC, committed by Junio C Hamano on 16 December 2007, 20:50:08 UTC
Signed-off-by: Li Hong <leehong@pku.edu.cn> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bc8b95a
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 ...