Staging
v0.5.1
Revision 9dfdf14b3805e89aa2782458bda15b3dfae24c09 authored by Junio C Hamano on 15 July 2007, 23:41:17 UTC, committed by Junio C Hamano on 15 July 2007, 23:41:17 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e3b4968
Raw File
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);
}
back to top