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

Re: [PATCH] Documentation/git-merge.txt: weaken warning about uncommited changes

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 18, 2013, 08:56 UTC
Message-ID
<vpqppvju794.fsf@anie.imag.fr>
In-Reply-To
<CALkWK0=USVa2htHSTyj4C7FrKEko-e_UGAnu-3UNvx_ue1vwig@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 9 quoted lines
> Matthieu Moy wrote:
>> Weaken the warning by discouraging only merge with /non-trivial/
>> uncommited changes.
>>
>> I don't think documenting all the failure cases in the doc would be a
>> good idea, so I've left the "in some cases" part.
>
> It's already documented in the pre-merge checks section, as Jonathan
> pointed out [1]. 

I had missed this one. But that's not the only case, you may also have problems with renames. The complete list would be really long to have here, and won't bring much to the user.

> We should update the documentation to point to it: I do not think
> "non-trivial" is much of an improvement.

Actually, I think it essentially says it all. If your changes are important enough to deserve a real backup, you should stash or commit. If you're ready to take the risk of losing it (the risk is small, but does exist), it's OK to run "git merge" blindly.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Ramkumar RamachandraNext: Junio C Hamano
Message 3 of 4 in “Documentation/git-merge.txt: weaken warning about uncommited changes”
  1. Documentation/git-merge.txt: weaken warning about uncommited changesMatthieu Moy, Jun 18, 2013
  2. Ramkumar RamachandraJun 18, 2013
  3. Matthieu MoyJun 18, 2013
  4. Junio C HamanoJun 18, 2013

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.