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

Re: [RFC] diff-cache buglet

From
Junio C Hamano <junkio@cox.net>
Date
Apr 26, 2005, 17:56 UTC
Message-ID
<7vy8b5o211.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.58.0504261005360.18901@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:

LT> I'm ok with that, but if so I think it should show the stage somehow, and LT> make it clear that it's unmerged. Maybe by appending something to the name LT> (maybe just a ':' and stage number, but I'd almost prefer the stage number LT> to be translated into something human-readable, so maybe we could have LT> something like

LT> filename.c^orig LT> filename.c^first LT> filename.c^second

LT> for stages 1-3 respectively)?

I'm the one who has been trying very hard to keep the output machine readable (remember? many of the -z flags are mine).

While I agree with you that we should somehow show the stage, I do not like your suggestion above very much. How about adding one column for stage number before the filename when --unmerged is given, just like show-files --stage shows? You'd soon get used to the pattern that has a single digit in between whitespaces to recognize which is merged and which isn't. E.g. this is from show-files --stage:

    100644 b258508afb7ceb449981bd9d63d2d3e971bf8d34 1 MM
    100644 b431b272d829ff3aa4d1a5085f4394ab4d3305b6 2 MM
    100644 19989d4559aae417fedee240ccf2ba315ea4dc2b 3 MM
    100644 a716d58de4a570e0038f5c307bd8db34daea021f 0 MN

Another thing I'd like to rectify is that show-files use a space while diff-tree and friends use a tab in between columns. Is it too late to standardize one way or the other? My vote goes to a space.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 3 of 9 in “[RFC] diff-cache buglet”
  1. Junio C HamanoApr 26, 2005
  2. Linus TorvaldsApr 26, 2005
  3. Junio C HamanoApr 26, 2005
  4. Linus TorvaldsApr 26, 2005
  5. Junio C HamanoApr 26, 2005
  6. Linus TorvaldsApr 26, 2005
  7. Junio C HamanoApr 26, 2005
  8. Linus TorvaldsApr 26, 2005
  9. Junio C HamanoApr 26, 2005

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.