From: Junio C Hamano <gitster@pobox.com>
To: David Aguilar <davvid@gmail.com>
Cc: Jeff King <peff@peff.net>, Sven Strickroth <sven@cs-ware.de>,
git@vger.kernel.org
Subject: Re: RFC: git status --amend
Date: Wed, 01 Apr 2015 10:16:22 -0700 [thread overview]
Message-ID: <xmqqlhibn509.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <20150401084230.GA12282@gmail.com> (David Aguilar's message of "Wed, 1 Apr 2015 01:43:24 -0700")
David Aguilar <davvid@gmail.com> writes:
> Would generalizing "status" to have a more gittish syntax make
> you feel less torn?
One of my early draft responses included a one whose punch line was
"Why limit the comparison to HEAD and HEAD^ but no other point of
reference?"
But I discarded it as a useless suggestion before writing it down,
primarily because I couldn't come up with an explanation _why_ being
able to say "git status --relative-to=next Makefile" is useful when
on the 'master' branch.
Surely, I may have changes in the Makefile relative to my index
because I am preparing for the next rc release, and the Makefile in
the index may be different from that of the 'next' branch because I
am on my 'master' branch. The potential output can be "explained"
in such a mechanical sense (e.g. "we generated the output this
way").
But I do not see an easy-to-understand explanation of the _meaning_
of the output, i.e. "What does it mean that the working tree file
has been modified since the checkout and the index is different
relative to that other branch? How does that information help me
after I learn it? What would I do differently with that information
at hand?"
Compared to that, "Show me what damage I would inflict if I did
'commit' now. By the way, I may want to see that information
limited to these paths" is a question whose utility is easily
explained, and so is the same question with 'commit' replaced by
'commit --amend'.
next prev parent reply other threads:[~2015-04-01 17:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 14:59 RFC: git status --amend Sven Strickroth
2015-03-31 18:04 ` Jeff King
2015-03-31 18:35 ` Junio C Hamano
2015-04-01 8:43 ` David Aguilar
2015-04-01 17:16 ` Junio C Hamano [this message]
2015-04-03 21:57 ` David Aguilar
2015-04-03 22:05 ` Jeff King
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=xmqqlhibn509.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=davvid@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=sven@cs-ware.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.