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

Re: git-merge adds test to a message -- bug?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 25, 2008, 20:04 UTC
Message-ID
<alpine.LSU.1.00.0803252102140.10660@wbgn129.biozentrum.uni-wuerzburg.de>
In-Reply-To
<20080325001247.GB26905@alea.gnuu.de>
Hi,
On Tue, 25 Mar 2008, Jörg Sommer wrote:
Show 24 quoted lines
> Junio C Hamano schrieb am Mon 24. Mar, 09:45 (-0700):
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> > > On Sun, 23 Mar 2008, Junio C Hamano wrote:
> > >
> > >> I unfortunately do not recall why _prepend_, and not _replace_, had 
> > >> to be the right behaviour.
> > >
> > > http://article.gmane.org/gmane.comp.version-control.git/31896/match=git+merge+make+usable
> > >
> > > Hth,
> > 
> > Ok, it helped.
> > 
> > So it was "my suspicion that people who would want to pass -m would 
> > want it to behave this way".
> > 
> > I do not care deeply either way myself, as I never have found use for 
> > -m to the merge command, but I think it could have been argued either 
> > way.
> 
> I would like to argue for the replace way. :) Take git rebase -p as an 
> example. If a merge is included in the rebase, it's redone with git 
> merge -m. Because git rebase works with detached heads you get merge 
> messages like this: [...]

That only means that the original author of rebase -p was a lazy bastard and did not use the proper way to call git-merge, namely

	git <msg> HEAD <the-other-branch>
Now, let's try git log -S to find out who that inexcusably lazy bum was.

Ciao, Dscho

Previous: Jörg SommerNext: Jörg Sommer
Message 6 of 7 in “git-merge adds test to a message -- bug?”
  1. Jörg SommerMar 23, 2008
  2. Junio C HamanoMar 24, 2008
  3. Johannes SchindelinMar 24, 2008
  4. Junio C HamanoMar 24, 2008
  5. Jörg SommerMar 25, 2008
  6. Johannes SchindelinMar 25, 2008
  7. Jörg SommerApr 9, 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.