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

Do you use "git-apply --show-files"?

From
Junio C Hamano <junkio@cox.net>
Date
Oct 16, 2005, 18:41 UTC
Message-ID
<7vek6lxq1d.fsf@assigned-by-dhcp.cox.net>

As a part of "funny pathname character" updates, I was reviewing "apply.c" and have two questions on its "--show-files" flag.

 * Unlike other informational flags like --stat and --summary,
   it does not turn off "apply".  Is it intentional? 
 * Do you (or anybody else) use it, and if so how?

The current code in the proposed updates branch decodes the same C-style encoded pathnames GNU patch with proposed enhancements would understand before applying patches, and when it needs to show pathnames with --index-info, --stat, and --summary, it uses the same encoded pathname to keep things on one line.

I think --show-files should also do the same for consistency, but before I update it I wanted to ask the above questions. If nobody uses it, I can just ignore the issues and probably remove the flag.

The plan is to backport the git-apply change to the maint branch to do a 0.99.8e before updated git-diff-* hits the master branch. The only thing that would make a difference is embedded SP. Currently they are not quoted, but they will be, like this:

        : siamese; git diff
        diff --git "a/Read Me" "b/Read Me"
        index 3deac99..543a8f0 100644
        --- "a/Read Me"
        +++ "b/Read Me"
        ...
Next: Linus Torvalds
Message 1 of 2 in “Do you use "git-apply --show-files"?”
  1. Junio C HamanoOct 16, 2005
  2. Linus TorvaldsOct 17, 2005

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.