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

Re: A Question from a Hopeful Future Contributor

From
D. Ben Knoble <ben.knoble@gmail.com>
Date
Jul 28, 2025, 16:54 UTC
Message-ID
<CALnO6CDAAOkWJZUvkaeyWrhvRF5j2MhDcvASTS-Cof+B48qTbw@mail.gmail.com>
In-Reply-To
<xmqq5xfcz7d6.fsf@gitster.g>
On Mon, Jul 28, 2025 at 11:02 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 27 quoted lines
>
> "D. Ben Knoble" <ben.knoble@gmail.com> writes:
>
> >> >> * "git status" on intent-to-add index entries (say "I" in the first
> >> >>   column instead of "A" for short status, add "(needs 'git add')" at the
> >> >>   end of "new file: $path " in long status).
> >> >
> >> > I am interpreting this todo message as meaning that the following behavior
> >> > should be implemented:
> >>
> >> I think that was done long time ago.  The entry may have been a wish-item
> >> in April 2011, but not anymore.
> >
> > At least in 2.48.1 and in git version 2.50.0.rc0.48.g74dbe4346c, this
> > behavior isn't present. So I wouldn't call it "done"—maybe there was a
> > discussion that it shouldn't be done, though? I didn't search the
> > list.
>
> I didn't either, so this response may not be adding much value, but
> I think the intent of the above entry is so that the output allows
> users to tell between already added entries and about to be added
> entries.  Perhaps in an ancient version of "git status" did not give
> enough information to allow us to tell the status of the index entry
> for the path and the status of the working tree file for the path
> separately, or something?
>
> In any case, we do not need to add anything to achieve that today.
[snip examples

All fair points, and matches with what I see—I was expecting to find something more explicit about intent in the output based on the todo item ("_I" vs "_A"; "(needs 'git add')" or better verbiage), but you're right that the existing output does indicate the state (if indirectly).

-- 
D. Ben Knoble
Previous: Junio C HamanoNext: Ayush Chandekar
Message 6 of 11 in “A Question from a Hopeful Future Contributor”
  1. Eric FredericksonJul 18, 2025
  2. Junio C HamanoJul 18, 2025
  3. Eric FredericksonJul 19, 2025
  4. D. Ben KnobleJul 26, 2025
  5. Junio C HamanoJul 28, 2025
  6. D. Ben KnobleJul 28, 2025
  7. Ayush ChandekarJul 18, 2025
  8. Lucas Seiki OshiroJul 19, 2025
  9. Eric FredericksonJul 20, 2025
  10. brian m. carlsonJul 19, 2025
  11. Eric FredericksonJul 20, 2025

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.