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

Re: git-status too verbose?

From
Karl Hasselström <kha@treskal.com>
Date
Mar 7, 2006, 09:17 UTC
Message-ID
<20060307091717.GA16645@diana.vm.bytemark.co.uk>
In-Reply-To
<20060307053547.GK6346@always.joy.eth.net>
On 2006-03-07 11:05:47 +0530, Joshua N Pritikin wrote:
Show 12 quoted lines
> On Mon, Mar 06, 2006 at 04:21:52PM -0800, Junio C Hamano wrote:
>
> >                     HEAD->index     index->files
> >     ------------------------------------------------
> >     hello.c         unmodified      modified
> >     world.c         modified        unmodified
> >     frotz.c         new             unmodified
> >         ...
> >     garbage.c~      ???             n/a
>
> For what it's worth, this chart immediately made sense to me and I
> would prefer it to the current git-status output.

I agree. This kind of status information makes the whole index concept an order of magnitude less confusing. In a way, it lets you learn what the index is by example, rather than first having to learn what it is in order to be able to grok the status information.

Fitting this in 80 columns should be a funny excercise, though. :-) I'd suggest printing the filename last:

     HEAD->index  index->files
     ------------------------------------------------
     unmodified   modified      hello.c
     modified     unmodified    world.c
     new          unmodified    frotz.c
         ...
     ???          n/a           garbage.c~
-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Joshua N PritikinNext: Johannes Schindelin
Message 6 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.