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

Re: [PATCH] document 'T' status from git-status

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 31, 2011, 04:18 UTC
Message-ID
<7vpqhdrdys.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4EADB4DB.5020004@icgroup.com>
Mark Dominus <mjd@icgroup.com> writes:
Show 7 quoted lines
>> The current organization of this table may need to be rethought, but if we
>> were to keep it, then this change is far from sufficient. For example, you
>> do not explain what XY = TT means.
> Thanks for your response.
>
> I did not try to document that because in my experimenting I was not
> able to produce that situation.

It is trivial if you realize that X is the change between the HEAD and the index, and Y is the change between the index and the working tree. Most importantly, no direct comparison between the HEAD and the working tree gets in the picture.

    $ mv COPYING RENAMING
    $ ln -s RENAMING COPYING
    $ git add COPYING
    $ mv RENAMING COPYING
    $ git status -suno
    TT COPYING
> Will you be applying the alternative patch you suggested, or would you
> prefer that I try to produce one along those lines?
I dunno.

An obvious alternative is to add T next to all occurrences of M in the table where we say "M is possible", but unless it is accompanied by an explanation "T is just a special case of M", I suspect the resulting description would be harder to understand than currently is, and as long as the reader understands "T is just a special case of M", then there isn't much point adding T everywhere M appears in the table anyway, so...

Previous: Mark DominusNext: Mark Dominus
Message 4 of 5 in “document 'T' status from git-status”
  1. document 'T' status from git-statusMark Dominus, Oct 30, 2011
  2. Junio C HamanoOct 30, 2011
  3. Mark DominusOct 30, 2011
  4. Junio C HamanoOct 31, 2011
  5. Mark DominusOct 31, 2011

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.