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

Re: [RFC/PATCH] shortstatus v1

From
Jeff King <peff@peff.net>
Date
Feb 10, 2009, 13:01 UTC
Message-ID
<20090210130153.GA17305@coredump.intra.peff.net>
In-Reply-To
<499174E8.3030207@drmicha.warpmail.net>
On Tue, Feb 10, 2009 at 01:36:56PM +0100, Michael J Gruber wrote:
Show 5 quoted lines
> > I would much prefer that, if it had been done that way from the
> > beginning. But I think we are stuck with "git status" due to hysterical
> > raisins.
> 
> ROTFTCOOTF!

I have to admit, this is a new acronym for me...I get the first half, but not the second.

Show 10 quoted lines
> > The big downside with the snippet I posted above is that it runs three
> > separate commands that go through the index. In theory, you could do it
> > in one pass. But wt-status _doesn't_ do that, since the diff
> > infrastructure isn't there (a long time ago, Junio had an experimental
> > parallel diff walker patch, but it never made it out of next).
> 
> We completely agree. How do you suggest to progress? Go for the diff
> walker? For a (porc.) command like shortstatus I think going through the
> index 3 times isn't that bad, all disk access should be cached after the
> first run.

I don't know if resurrecting the parallel diff walker is worth the trouble. I guess if somebody cares enough about the performance they can find the old patch and try benchmarking it.

Making a C command rather than a shell script is probably reasonable if this is performance critical (and there seems to be talk of putting it into a prompt). What I really object to in the patch is:

  - sticking this in builtin-commit.c. It really has _nothing_ to do
    with commit or the existing status. Especially using the same
    option parser is just nonsensical.
  - I'm not sure bolting this onto wt-status really makes much sense.
    Especially the performance-critical --mini prompt mode _doesn't_
    want to do the string collection because it wastes a lot of cycles
    figuring out things that we are just going to throw away.
    However, for the "regular" mode, I don't think it is too big a
    problem. wt_status does a few extra things that shortstatus won't
    care about, but I don't think they are too performance critical
    (e.g., I believe it will find out the "your branch is N commits
    ahead of the remote" information).
-Peff
Previous: Michael J GruberNext: Junio C Hamano
Message 12 of 25 in “shortstatus v1”
  1. shortstatus v1Tuncer Ayaz, Feb 10, 2009
  2. Junio C HamanoFeb 10, 2009
  3. Sitaram ChamartyFeb 10, 2009
  4. Spending time in PS1, was Re: [RFC/PATCH] shortstatus v1Johannes Schindelin, Feb 10, 2009
  5. Sitaram ChamartyFeb 10, 2009
  6. Tuncer AyazFeb 10, 2009
  7. Jeff KingFeb 10, 2009
  8. Michael J GruberFeb 10, 2009
  9. Tuncer AyazFeb 10, 2009
  10. Jeff KingFeb 10, 2009
  11. Michael J GruberFeb 10, 2009
  12. Jeff KingFeb 10, 2009
  13. Junio C HamanoFeb 10, 2009
  14. Jeff KingFeb 10, 2009
  15. Jeff KingFeb 10, 2009
  16. Jeff KingFeb 10, 2009
  17. Tuncer AyazFeb 10, 2009
  18. Jeff KingFeb 10, 2009
  19. Junio C HamanoFeb 10, 2009
  20. Tuncer AyazFeb 10, 2009
  21. Jeff KingFeb 10, 2009
  22. Junio C HamanoFeb 10, 2009
  23. Jeff KingFeb 12, 2009
  24. Nanako ShiraishiFeb 10, 2009
  25. Junio C HamanoFeb 11, 2009

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.