git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Tech 'git-apply' that spaces before a tab are candidate for stripping

From
Junio C Hamano <junkio@cox.net>
Date
May 20, 2007, 07:53 UTC
Message-ID
<7v8xbkrkwo.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e5bfff550705190944y44cb57baiccb139b1d649face@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
Show 12 quoted lines
> Currently 'git-apply' identify as stealth space a line starting with
> spaces followed by a tab.
>
> This patch updates the algorithm to find spaces + tab also in the
> middle of a line and not only at the beginning.
>
> As example lines like
>
> "#define MY_VALUE   \t 1"
>
> are now identified and cleaned up if option '--whitespace=strip' is
> used.

I specifically did not want to do the above, as it would also munge something like this:

	const char string[] = "abc <HT> de";
Previous: Marco Costalba
Message 2 of 2 in “Tech 'git-apply' that spaces before a tab are candidate for stripping”
  1. Tech 'git-apply' that spaces before a tab are candidate for strippingMarco Costalba, May 19, 2007
  2. Junio C HamanoMay 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.