Staging
v0.5.1
https://github.com/git/git
Revision 5fda48d67c82e07950e0b0c21cd8c97daefd7be0 authored by Johannes Schindelin on 07 July 2007, 17:50:39 UTC, committed by Junio C Hamano on 07 July 2007, 18:54:51 UTC
"git apply" used to take check the whitespace in the wrong
direction.

Noticed by Daniel Barkalow.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ed5f07a
Raw File
Tip revision: 5fda48d67c82e07950e0b0c21cd8c97daefd7be0 authored by Johannes Schindelin on 07 July 2007, 17:50:39 UTC
Fix "apply --reverse" with regard to whitespace
Tip revision: 5fda48d
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