Re: [PATCH] xdiff/xemit.c (xdl_find_func): Elide trailing white space in a context header.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, October 23, 2006 - 1:49 pm

On Mon, 23 Oct 2006, Jim Meyering wrote:

NO!

This is _wrong_

You should only remove the space IF IT IS THE ONLY THING ON THE WHOLE 
LINE!

You must not remove white-space in general.

So the patch should check something like

	if (len == 1 && rec[0] == ' ')
		len = 0;

and not like you did it.

Otherwise the patch will simply not even _apply_.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] xdiff/xemit.c (xdl_find_func): Elide trailing ..., Linus Torvalds, (Mon Oct 23, 1:49 pm)