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

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

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 17, 2005, 00:45 UTC
Message-ID
<Pine.LNX.4.64.0510161740000.23590@g5.osdl.org>
In-Reply-To
<7vek6lxq1d.fsf@assigned-by-dhcp.cox.net>
On Sun, 16 Oct 2005, Junio C Hamano wrote:
Show 8 quoted lines
>
> 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?
As far as I'm concerned, you can remove it.

The point of show-files was to have the index update be based on the files that were updated, it I was originally not planning to updating the index directly in git-apply, but instead do something like

	files=$(git-apply --show-files)
	git-update-cache --add --delete -- $files
but it turned out to be a lot easier to just update the index.
So just remove that flag, I doubt it has ever been used.
		Linus
Previous: Junio C Hamano
Message 2 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.