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

Re: [RFC/PATCH] shortstatus v1

From
TATuncer Ayaz <tuncer.ayaz@gmail.com>
Date
Feb 10, 2009, 11:31 UTC
Message-ID
<4ac8254d0902100331h4f74df6am6cd514e6ba2c8d6a@mail.gmail.com>
In-Reply-To
<49916524.4000400@drmicha.warpmail.net>

On Tue, Feb 10, 2009 at 12:29 PM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

Show 35 quoted lines
> Jeff King venit, vidit, dixit 10.02.2009 12:03:
>> On Tue, Feb 10, 2009 at 01:51:07AM +0100, Tuncer Ayaz wrote:
> ...
>>   3. What advantage does this have over just doing:
>>
>>        (git diff --name-status;
>>         git diff --cached --name-status) | sort -k2
>
> That is fine, except that it can't list untracked files.
>
>> What options are available? It looks like this is intimately tied with
>> "commit", which I think is one of the _shortcomings_ of the current
>> status. It means the command line options are non-intuitive for what
>> people generally want to say: "what is changed, possibly limiting to
>> some path".
>
> Right now, "git status" is basically "git commit --dry-run", which may
> or may not be good, but certainly is not what people coming from other
> vcs expect. I would suggest having "git commit -n" replace "git status"
> if I hadn't done so already or if I dared to (I can't remember ;) ).
>
> The softer approach was naming "shortstatus" what those people would
> expect for "status".
>
> The "git diff" based solution does almost everything, but back then it
> wasn't clear how to get at the untracked and ignored files. In fact,
> that would have the benefit that output from "git diff --name-status
> commitA commitB" is guaranteed to stay consistent with "git diff
> --name-status HEAD WORKTREE", "git diff --name-status INDEX WORKTREE"
> and the three-way diff between HEAD, INDEX and WORKTREE which
> shortstatus really is (WORKTREE meaning full wt with untrcaked/ignored
> files).
>
> "git ls-files" may do but has a different set of mode characters. I
> think that sums up what preceeded Junio's patch from October.

For reference: http://markmail.org/message/tqvshvcj2ybgj6ea

Previous: Michael J GruberNext: Jeff King
Message 9 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.