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

Re: [PATCH] git status: ignoring untracked files must apply to submodules too

From
Jens Lehmann <jens.lehmann@web.de>
Date
Mar 14, 2010, 00:55 UTC
Message-ID
<4B9C3407.9090502@web.de>
In-Reply-To
<7vaaubzrxq.fsf@alter.siamese.dyndns.org>
Am 14.03.2010 01:07, schrieb Junio C Hamano:
Show 11 quoted lines
> Jens Lehmann <Jens.Lehmann@web.de> writes:
> 
>> First: When called from "git status" run_diff_files() calls
>> wt_status_collect_changed_cb() for every file it considers changed, so
> 
> This reminds me of another thing, perhaps independent, perhaps related.
> Why aren't we collecting the submodule status in wt_status_collect() to
> begin with?  It examines the submodule status in wt_status_print(), but
> that feels quite against the way how the whole "struct wt_status" was
> designed to be used in the first place, I think.  Would restuctuing the
> code that way make this easier to handle?

I'm not sure I understand that, but AFAICS in wt_status_print_changed() only the fact that at least one submodule is dirty is examined to be able to print the extra hint line. The status of each submodule is collected in wt_status_collect_changed_cb(), no?

And while not having being active when "struct wt_status" has been designed, i think adding submodules to the "change" list when they are dirty makes kind a sense ... but i might be wrong ;-)

Previous: Junio C Hamano
Message 5 of 5 in “git status: ignoring untracked files must apply to submodules too”
  1. git status: ignoring untracked files must apply to submodules tooJens Lehmann, Mar 13, 2010
  2. Junio C HamanoMar 13, 2010
  3. Jens LehmannMar 13, 2010
  4. Junio C HamanoMar 14, 2010
  5. Jens LehmannMar 14, 2010

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.