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