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

Re: [PATCH] doc: 'T' status code for git status

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 10, 2020, 00:47 UTC
Message-ID
<xmqqlfe6zdts.fsf@gitster.c.googlers.com>
In-Reply-To
<X9FCUseRteZ1n7ec@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 6 quoted lines
> TBH, I find the whole table overly confusing. But then, I am completely
> comfortable with the notion that it is really showing two diffs, with
> their results collated. To me it is simpler to just discuss the two
> sides of the diff independently, and then you do not even really need a
> table at all ("M" means modified no matter which column it appears in).
> But I may not be a representative Git user.

Me neither. I think the folks who originally wanted to see the table was curious about what combination of X and Y are possible.

For example, if a path is deleted in the index, there won't be any intelligent thing we can say about the path in the working tree, so after "git rm COPYING" we'd see "D COPYING", not "DD COPYING", and after "git rm --cached COPYING && date >COPYING", we'd still see "D COPYING", not "DM COPYING".

It is unclear how such knowledge would be useful to the readers, so I won't shed tears if we got rid of the table; the bits saved might be better used to enhance the description in the list of mnemonics.

Thanks.
Previous: Jeff KingNext: Julien Richard via GitGitGadget
Message 8 of 9 in “doc: 'T' status code for git status”
  1. doc: 'T' status code for git statusJulien Richard via GitGitGadget, Dec 9, 2020
  2. Jeff KingDec 9, 2020
  3. Julien RichardDec 9, 2020
  4. Jeff KingDec 9, 2020
  5. Junio C HamanoDec 9, 2020
  6. Julien RichardDec 9, 2020
  7. Jeff KingDec 9, 2020
  8. Junio C HamanoDec 10, 2020
  9. doc: 'T' status code for git statusJulien Richard via GitGitGadget, Dec 9, 2020

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.