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

Re: [BUG] git filter-branch failed to suppress a file with an accentuated letter in the filename

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 15, 2008, 22:21 UTC
Message-ID
<7vwsp5g8to.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LSU.1.00.0802151811240.30505@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
>> I have to wonder in what century filter-branch was written ;-)
>> 
>> Shouldn't those two lines be:
>> 
>> 	git diff-index -r --name-only $commit |
>>         git update-index --add --replace --remove --stdin
>> 
>> these days, without any of the cut and cruft?
>
> Maybe even using "-z" in both cases?
>
> Having said that, I do not understand why the old code did not work.  Will 
> have a look later today.

The reason mine does not have to use -z is because both end knows how to C-quote paths under non-z mode.

Now you mention it, it certainly is a bit puzzling why the old one did not work.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 9 in “[BUG] git filter-branch failed to suppress a file with an accentuated letter in the filename”
  1. Remi VanicatFeb 15, 2008
  2. Junio C HamanoFeb 15, 2008
  3. Johannes SchindelinFeb 15, 2008
  4. Junio C HamanoFeb 15, 2008
  5. Johannes SchindelinFeb 16, 2008
  6. Johannes SchindelinFeb 16, 2008
  7. Remi VanicatFeb 16, 2008
  8. Junio C HamanoFeb 16, 2008
  9. Remi VanicatFeb 16, 2008

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.