From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: git@vger.kernel.org, Theodore Ts'o <tytso@mit.edu>
Subject: Re: [RFC] git-mergetool: show original branch names when possible
Date: Mon, 20 Aug 2007 01:28:31 -0700 [thread overview]
Message-ID: <7vabsmtxsg.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <20070820075318.GA12478@coredump.intra.peff.net> (Jeff King's message of "Mon, 20 Aug 2007 03:53:18 -0400")
Jeff King <peff@peff.net> writes:
> 1. Is it OK to place the extra branch name information in MERGE_HEAD
> after the SHA1?
I do not think of anything that would barf offhand (we already
do that in FETCH_HEAD), but this would definitely be carefully
audited.
> 2. It looks like doing an anonymous 'git-pull' leaves GITHEAD_* as the
> commit sha1, which means you will end up with that sha1 rather than
> 'REMOTE', which is less nice than the current behavior.
Much less nice indeed.
> It would be _really_ convenient in this case if we had a "git is in the
> middle of something" file, which has been discussed before.
> ...
> there are some operations that persist across multiple command
> invocations, and it would be nice rather than every command knowing
> about every other command's implementation patterns ("Oh, you have a
> .dotest file? You must be in the middle of...") to have a single place
> with something like:
>
> $ cat .git/STATE
> operation: merge
> remote: git://git.kernel.org/pub/scm/git/git.git
> branch: master
> branch: octopus
It would be very nice, and I would encourage any wannabe
Porcelain writers to go wild on this. One worry I have is if we
would need to support nested states. "I was in the middle of
'foo' and then had to go sideways to do 'bar' which I am now in
the middle of" kind of thing.
next prev parent reply other threads:[~2007-08-20 8:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-20 7:53 [RFC] git-mergetool: show original branch names when possible Jeff King
2007-08-20 8:28 ` Junio C Hamano [this message]
2007-08-20 8:52 ` Jeff King
2007-08-20 18:17 ` Jan Hudec
2007-08-21 6:10 ` Jeff King
2007-08-21 14:59 ` Jan Hudec
2007-08-21 20:55 ` Jeff King
2007-08-21 21:17 ` 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=7vabsmtxsg.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=tytso@mit.edu \
/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).