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 14:23:23 -0700 [thread overview]
Message-ID: <7v7hx4bwl0.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <7v8whltrqj.fsf@alter.siamese.dyndns.org> (Junio C. Hamano's message of "Sat\, 15 Aug 2009 01\:18\:28 -0700")
Junio C Hamano <gitster@pobox.com> writes:
> 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?
Just a quick status update, lest others waste too much time staring at the
series I posted last night.
- Leading and trailing comments (e.g. "On branch foo", "Initial commit",
"# No changes", ...) were missing.
- Did not honor -v to show "diff --cached".
- Subdirectory behaviour (status.relativepath configuration) was broken.
I have a version that fixes the above, and exits 0 when there is no error
(i.e. does not exit non-zero on clean index). There are existing tests
that expect "git status" erroring out on clean index and there are some
that depends on "git status paths..." to show preview of a partial commit,
which needed to be replaced with "git commit --dry-run", but as far as I
can tell, I've took care of them all.
I am still feeling uneasy about the exit status change (the test scripts
are sources of how people who script around git take their inspirations
after all), but I'll send the result out for a review later without
changing that back to "exit failure when there is nothing to commit".
prev parent reply other threads:[~2009-08-15 21:23 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 ` jc/shortstatus Junio C Hamano
2009-08-15 8:45 ` jc/shortstatus Jeff King
2009-08-15 21:23 ` Junio C Hamano [this message]
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=7v7hx4bwl0.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