Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 527270689c364bea9b0630df9bae5e09c2071c1e authored by Tim Stoakes on 10 February 2008, 04:19:08 UTC
Fix typo in 'blame' documentation.
Tip revision: 5272706
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