From: Carl Worth <cworth@cworth.org>
To: Junio C Hamano <junkio@cox.net>
Cc: Linus Torvalds <torvalds@osdl.org>, git@vger.kernel.org
Subject: Comments on "status -v" (was: Two crazy proposals for changing git's diff commands)
Date: Fri, 10 Feb 2006 12:32:10 -0800 [thread overview]
Message-ID: <87u0b7uf91.wl%cworth@cworth.org> (raw)
In-Reply-To: <7vmzgzy46f.fsf@assigned-by-dhcp.cox.net>
[-- Attachment #1: Type: text/plain, Size: 1816 bytes --]
On Fri, 10 Feb 2006 01:05:28 -0800, Junio C Hamano wrote:
>
> Linus Torvalds <torvalds@osdl.org> writes:
>
> > Under that logic, "git status -v" would show all the diffs (not just
> > filenames) and "git commit -v .." would be the same as "git commit .." but
> > the "-v" flag would have been passed down to the "git status" call, so the
> > commit message file would be pre-populated with the diff.
>
> Now that is done and sitting at the tip of "next".
Thanks. This does look quite useful.
A couple of comments, though:
1) I think the patch should come after the traditional status summary,
not before. If something is obviously "wrong" (non-updated file,
etc.) that will be more obvious in the summary, so it's good to
present that up front, and not bury it after the patch, (which
might make it initially invisible without scrolling).
2) Using the "^---$" separator to separate the the edited contents
into a commit message and ignored content seems risky to me.
One risk is that the user might put that magic string in the commit
message. Perhaps the risk is low, but it would be a silent
destruction of historical data, which seems like a bad trap.
A second risk is that with the current patch-then-summary order it
is actually quite easy to inadvertently clobber the separator while
editing the commit message. Particularly because the separator is
placed exactly where the user must begin editing. So it would be
easy to leave the separator trailing on a line of
commit message comments or else introducing some initial
whitespace that would break it.
Moving the patch after the summary (as discussed above) would help
greatly in avoiding the clobbered separator, but wouldn't address
the separator-appears-in-commit-message problem.
-Carl
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-02-10 20:33 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-09 0:29 Two crazy proposals for changing git's diff commands Carl Worth
2006-02-09 1:05 ` Linus Torvalds
2006-02-09 1:21 ` Linus Torvalds
2006-02-09 23:07 ` Carl Worth
2006-02-09 23:40 ` Junio C Hamano
2006-02-09 1:35 ` Junio C Hamano
2006-02-09 1:21 ` Junio C Hamano
2006-02-09 1:30 ` Linus Torvalds
2006-02-09 1:37 ` Junio C Hamano
2006-02-10 9:05 ` Junio C Hamano
2006-02-10 20:32 ` Carl Worth [this message]
2006-02-10 21:09 ` Comments on "status -v" Junio C Hamano
2006-02-10 21:35 ` Linus Torvalds
2006-02-10 22:12 ` Junio C Hamano
2006-02-10 22:51 ` Petr Baudis
2006-02-10 23:26 ` Junio C Hamano
2006-02-09 23:44 ` Two crazy proposals for changing git's diff commands Carl Worth
2006-02-10 0:13 ` Junio C Hamano
2006-02-10 1:24 ` Carl Worth
2006-02-10 2:24 ` Junio C Hamano
2006-02-10 3:18 ` Carl Worth
2006-02-10 17:06 ` Mark Wooding
2006-02-13 9:23 ` Catalin Marinas
2006-02-13 22:00 ` Prune-safe StGIT (was Re: Two crazy proposals for changing git's diff commands) Catalin Marinas
2006-02-10 19:36 ` Two crazy proposals for changing git's diff commands Kent Engstrom
2006-02-11 19:25 ` Junio C Hamano
2006-02-12 12:00 ` [PATCH] Add howto about separating topics kent
2006-02-12 3:15 ` Two crazy proposals for changing git's diff commands J. Bruce Fields
2006-02-12 3:48 ` Junio C Hamano
2006-02-09 16:44 ` Tim Larson
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=87u0b7uf91.wl%cworth@cworth.org \
--to=cworth@cworth.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.org \
/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).