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

Re: [PATCH] Documentation/git-merge.txt: Expand the How Merge Works section

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 19, 2008, 00:32 UTC
Message-ID
<7vprpa67e4.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080718131800.GP10151@machine.or.cz>
Petr Baudis <pasky@suse.cz> writes:
Show 10 quoted lines
>> However, I think we may want to talk about "How to tell if your merge did
>> not even touch your index nor working tree" somewhere in the manual.
>> "When there are conflicts, these things happen" part talks about how to
>> resolve conflicts, but when merge refuses to avoid losing local changes,
>> the instruction in that part does not apply.
>
>   I'm not sure if this is worth pondering about? The action would feel
> rather obvious to me - get rid of the local changes somehow, either
> committing them or stashing them or wiping them out. Is that worth
> elaborating, or is there more to it?

Oh, the necessary action is obvious. That's not the issue. You either forget about the merge and in that case your index and working tree is intact and you can keep going. Or stash to merge first.

But what I was wondering was if we have given the users enough clues to tell if the above is the right action. If merge started and conflicted, then forgetting about it and keep going is _not_ the right thing, and the user needs to be able to tell these two very distinct cases apart.

Previous: Petr BaudisNext: Petr Baudis
Message 8 of 9 in “Documentation/git-merge.txt: Expand the How Merge Works section”
  1. Documentation/git-merge.txt: Expand the How Merge Works sectionPetr Baudis, Jul 17, 2008
  2. Petr BaudisJul 17, 2008
  3. Junio C HamanoJul 17, 2008
  4. Petr BaudisJul 17, 2008
  5. Junio C HamanoJul 17, 2008
  6. Petr BaudisJul 18, 2008
  7. Documentation/git-merge.txt: Partial rewrite of How Merge WorksPetr Baudis, Jul 18, 2008
  8. Junio C HamanoJul 19, 2008
  9. Documentation/git-merge.txt: Partial rewrite of How Merge WorksPetr Baudis, Jul 19, 2008

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.