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

Re: Possible bug with git status in 1.7.0

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 17, 2010, 19:21 UTC
Message-ID
<7vvddvoegv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<loom.20100217T184109-183@post.gmane.org>
Sergio <sergio.callegari@gmail.com> writes:
Show 6 quoted lines
> if you have a submodule and the submodule contains
> untracked files, "git status" in 1.7.0 keeps showing
> the module as modified.
>
> But of of course it is useless to "git add" the module
> or to try to "git  commit -a", since the index entry is ok

Of course it is useless to "git add" in the superproject, and this is an intended bugfix.

You are getting reminded that you either forgot to "git add" that file in the submodule, or you forgot to add that file to .gitignore in the submodule.

Previous: SergioNext: Sergio Callegari
Message 2 of 7 in “Possible bug with git status in 1.7.0”
  1. SergioFeb 17, 2010
  2. Junio C HamanoFeb 17, 2010
  3. Sergio CallegariFeb 17, 2010
  4. Jens LehmannFeb 17, 2010
  5. Sergio CallegariFeb 19, 2010
  6. Jens LehmannFeb 19, 2010
  7. Sergio CallegariFeb 20, 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.