From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org
Subject: Re: jc/shortstatus
Date: Sat, 15 Aug 2009 01:18:28 -0700 [thread overview]
Message-ID: <7v8whltrqj.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20090815070904.GA23389@coredump.intra.peff.net> (Jeff King's message of "Sat\, 15 Aug 2009 03\:09\:04 -0400")
Jeff King <peff@peff.net> writes:
> For the "git stat" portion still in pu, I have a few comments/questions:
>
> 1. Is "stat" a good name? I worry a little that it is _too_ similar to
> "status", and that will cause confusion while they both exist. So
> something like "git overview" would cause less confusion, and even
> though it sucks to type, it will eventually replace "status" (and
> in the meantime people can make aliases or whatever).
It is handy to have both available while asking others help debugging the
version in 'pu', and that is the only reason for the separate command. It
could have been named 'git frotz' for all I care ;-)
I do not intend to make it another "git merge-recur"; I would actually
want to have it replace "status" before the series goes to 'next'.
I hopefully will have some time to start doing that over the weekend; the
first step would be to rename the branch to jc/1.7.0-status and get rid of
cmd_status() from builtin-commit.c.
A few points I haven't managed to think about, decide, nor test, are:
- What should its exit code be? Should it be consistent with the
traditional "git status" at least when no paths are given, signallying
failure when nothing is staged for committing, so that ancient out of
tree scripts people may have written would not break too badly when we
make the switch?
- What should its default mode of output be? Do people prefer "svn st"
style short-format output, or should we stay verbose and explanatory?
- Is it handling corner cases correctly? e.g. Does it operate correctly
when run from a subdirectory? How should it handle submodules? Before
the initial commit? Use of colors?
> 2. Does it really belong in builtin-commit.c anymore? It seems like
> historical accident that "status" is so closely tied to commit. The
> whole point of the new command is to _not_ be tied; I think of the
> new command more as an extension of 'diff'. Admittedly, users don't
> care where the source is located, but it helps the developers
> understand the relationships between code.
It would make sense to create a separate builtin-status.c. I haven't
looked at the dependencies yet, but it shouldn't be too bad. We'll see.
> 3. Can you squash in the gitignore patch below? :)
Yes but hopefully it won't be necessary ;-)
next prev parent reply other threads:[~2009-08-15 8:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 2:14 What's cooking in git.git (Aug 2009, #02; Wed, 12) Junio C Hamano
2009-08-14 22:27 ` Jakub Narebski
2009-08-15 1:51 ` Junio C Hamano
2009-08-15 7:09 ` jc/shortstatus (was: What's cooking in git.git (Aug 2009, #02; Wed, 12)) Jeff King
2009-08-15 8:18 ` Junio C Hamano [this message]
2009-08-15 8:45 ` jc/shortstatus Jeff King
2009-08-15 21:23 ` jc/shortstatus Junio C Hamano
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=7v8whltrqj.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--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