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

Re: git-status too verbose?

From
Junio C Hamano <junkio@cox.net>
Date
Mar 7, 2006, 09:46 UTC
Message-ID
<7v3bhumvt6.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<440D503E.8090007@op5.se>
Andreas Ericsson <ae@op5.se> writes:
Show 23 quoted lines
>> I agree that it would be useful if we had a tool that showed the
>> two status that matter for each file, grouped together on one
>> line, e.g.
>> 			HEAD->index	index->files
>> 	------------------------------------------------
>> 	hello.c		unmodified      modified
>>         world.c		modified	unmodified
>> 	frotz.c		new		unmodified
>>         ...
>> 	garbage.c~	???		n/a
>> for the current index file and the current HEAD commit.
>
> Could we have 'same' or some such instead of 'unmodified'? It's a bit
> close to 'modified' for the eye to find it quickly.
>
>> You obviously need to learn how to read it though.  The first
>> column means what you _would_ commit if you just said "git
>> commit" without doing anything else now; the second column is
>> what you _could_ commit if you did some update-index and then
>> said "git commit" (or ran "git commit" with paths arguments).
>
> Pretty-printing will be easier if the filename is last, and it will
> look a lot neater if all columns are aligned.

Somebody who feels strongly about this can propose a design. Although I am not particularly fond of the current output, I am not volunteering ;-).

It would be nicer if the proposal was accompanied by a patch, but that is not a requirement for discussion.

The points that design would address should include:
 - set of labels (full list)
   modified, same, renamed?, untracked, ...
 - field ordering (good point by Andreas)
   - what to do _if_ we choose to do rename detection?  you need
     two pathnames.
 - alignment (good point by Andreas)
Previous: Andreas EricssonNext: Andreas Ericsson
Message 9 of 12 in “git-status too verbose?”
  1. Eric JaffeMar 4, 2006
  2. Carl WorthMar 6, 2006
  3. Shawn PearceMar 6, 2006
  4. Junio C HamanoMar 7, 2006
  5. Joshua N PritikinMar 7, 2006
  6. Karl HasselströmMar 7, 2006
  7. Johannes SchindelinMar 7, 2006
  8. Andreas EricssonMar 7, 2006
  9. Junio C HamanoMar 7, 2006
  10. Andreas EricssonMar 7, 2006
  11. Linus TorvaldsMar 7, 2006
  12. Carl WorthMar 7, 2006

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.