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

Re: BUG: "git add --interactive" does not work with UTF-8 filenames

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 2, 2008, 00:41 UTC
Message-ID
<7v63v1ccmb.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<m3y77xtk32.fsf@localhost.localdomain>
Jakub Narebski <jnareb@gmail.com> writes:
Show 16 quoted lines
> git-config(1):
>
>   core.quotepath::
> 	The commands that output paths (e.g. `ls-files`,
> 	`diff`), when not given the `-z` option, will quote
> 	"unusual" characters in the pathname by enclosing the
> 	pathname in a double-quote pair and with backslashes the
> 	same way strings in C source code are quoted.  If this
> 	variable is set to false, the bytes higher than 0x80 are
> 	not quoted but output as verbatim.  Note that double
> 	quote, backslash and control characters are always
> 	quoted without `-z` regardless of the setting of this
> 	variable.
>
> Since 1.5.2.2 (I think), or at least 1.5.3, so you have new enough
> version of git (git is now at 1.5.5-rc2).

Yes, but I do not think "add -i" unwraps the path quoting. I think it should, but I do not think I bothered to. Because it is trivial to do by any aspiring git hacker wannabes, I left it as an exercise to readers when I did the "interactive" as a quick-and-dirty hack (aka "demonstration").

Somehow nobody found an itch to improve it until now, but it seems that we found a volunteer with the itch ;-)

Previous: Teemu LikonenNext: Jakub Narebski
Message 4 of 8 in “BUG: "git add --interactive" does not work with UTF-8 filenames”
  1. Teemu LikonenApr 1, 2008
  2. Jakub NarebskiApr 1, 2008
  3. Teemu LikonenApr 1, 2008
  4. Junio C HamanoApr 2, 2008
  5. Jakub NarebskiApr 2, 2008
  6. Junio C HamanoApr 2, 2008
  7. Describe the bug about handling non-Ascii filenames in 'git add -i'Teemu Likonen, Apr 2, 2008
  8. Junio C HamanoApr 2, 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.