From: Tuncer Ayaz <tuncer.ayaz@gmail.com>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org, gitster@pobox.com
Subject: Re: [RFC/PATCH] shortstatus v1
Date: Tue, 10 Feb 2009 12:31:57 +0100 [thread overview]
Message-ID: <4ac8254d0902100331h4f74df6am6cd514e6ba2c8d6a@mail.gmail.com> (raw)
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:
> 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
next prev parent reply other threads:[~2009-02-10 11:33 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-10 0:51 [RFC/PATCH] shortstatus v1 Tuncer Ayaz
2009-02-10 1:44 ` Junio C Hamano
2009-02-10 3:46 ` Sitaram Chamarty
2009-02-10 10:22 ` Spending time in PS1, was " Johannes Schindelin
2009-02-10 17:31 ` Sitaram Chamarty
2009-02-10 10:11 ` Tuncer Ayaz
2009-02-10 11:03 ` Jeff King
2009-02-10 11:29 ` Michael J Gruber
2009-02-10 11:31 ` Tuncer Ayaz [this message]
2009-02-10 11:45 ` Jeff King
2009-02-10 12:36 ` Michael J Gruber
2009-02-10 13:01 ` Jeff King
2009-02-10 15:58 ` Junio C Hamano
2009-02-10 18:10 ` Jeff King
2009-02-10 18:22 ` Jeff King
2009-02-10 19:11 ` Jeff King
2009-02-10 21:21 ` Tuncer Ayaz
2009-02-10 21:36 ` Jeff King
2009-02-10 22:25 ` Junio C Hamano
2009-02-10 22:52 ` Tuncer Ayaz
2009-02-10 22:55 ` Jeff King
2009-02-10 23:05 ` Junio C Hamano
2009-02-12 0:49 ` Jeff King
2009-02-10 23:52 ` Nanako Shiraishi
2009-02-11 21:24 ` Junio C Hamano
-- strict thread matches above, loose matches on Subject: below --
2009-02-10 23:58 [RFC] New command: 'git snapshot' Ulrik Sverdrup
2009-02-11 0:08 ` [RFC/PATCH] shortstatus v1 Nanako Shiraishi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ac8254d0902100331h4f74df6am6cd514e6ba2c8d6a@mail.gmail.com \
--to=tuncer.ayaz@gmail.com \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).