git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] git-mergetool: show original branch names when possible

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 20, 2007, 08:28 UTC
Message-ID
<7vabsmtxsg.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20070820075318.GA12478@coredump.intra.peff.net>
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.
Show 14 quoted lines
> 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.

Previous: Jeff KingNext: Jeff King
Message 2 of 8 in “[RFC] git-mergetool: show original branch names when possible”
  1. Jeff KingAug 20, 2007
  2. Junio C HamanoAug 20, 2007
  3. Jeff KingAug 20, 2007
  4. Jan HudecAug 20, 2007
  5. Jeff KingAug 21, 2007
  6. Jan HudecAug 21, 2007
  7. Jeff KingAug 21, 2007
  8. Junio C HamanoAug 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.