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

Ugly "git pull .." merge messages

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 2, 2005, 07:46 UTC
Message-ID
<Pine.LNX.4.58.0509011117130.6795@evo.osdl.org>

Junio, I think this happened when you rewrote the pull/push stuff to do shorthands..

Lately, "git pull" generates a lot of extra crud in the single-line commit message, which is annoying because a lot of tools will thus actually not show enough of the line to be valid.

For example, it used to get rid of the ".git" at the end, and it didn't bother to say "HEAD". So

    Merge HEAD from master.kernel.org:/home/rmk/linux-2.6-arm.git
used to be just
    Merge master.kernel.org:/home/rmk/linux-2.6-arm

which is actually much nicer. It tends to fit in the gitk description window.

In this example:
    Merge refs/heads/release from master.kernel.org:/pub/scm/linux/kernel/git/aegl/linux-2.6

I had manually removed the ".git" (since git-fetch-pack will happily add it back), so it doesn't have the ".git" at the end of the message, but instead it has a ref-name that is the internal git path rather than the path that I actually specified. Now, we didn't use to be shorter, but at least it used to be more readable, with

    Merge 'release' branch of master.kernel.org:/pub/scm/linux/kernel/git/aegl/linux-2.6

(Ok, it's slightly shorter, but not much - but my point is that it's actually more readable).

Could we get the nicer messages back, please?
		Linus
Next: Junio C Hamano
Message 1 of 2 in “Ugly "git pull .." merge messages”
  1. Linus TorvaldsSep 2, 2005
  2. Fix automerge message.Junio C Hamano, Sep 2, 2005

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.