feature proposal: named branches without named branches
Uwe Brauer
oub at mat.ucm.es
Mon Nov 14 13:03:15 UTC 2016
Hi
I recently found out that git, which does only have bookmarks, has a
feature (name-rev) which allows to display the log and its bookmarks «as if they
were named branches»
The following
git log --graph --decorate --pretty=short | git name-rev --stdin | more
Does the trick
Resulting for example for the auctex repository in
* commit eb2d64bede8587c864c3031f233a0ae87c3f3a03 (master) (HEAD, origin/master, origin/HEAD, master)
| Author: Mosè Giordano <mose at gnu.org>
|
| Fix to my previous commit
|
* commit 17d1a5d71f9fb6adbb90e17dbf223f3bf1e2f92a (master~153)
|\ Merge: f9efa73 1950012
| | Author: Mosè Giordano <mose at gnu.org>
| |
| | ; Merge branch 'simplify-TeX-parse-error'
| |
| * commit 1950012155d539f05c393dae3d6e93548bbc57b2 (remotes/origin/simplify-TeX-parse-error~136)
| |\ Merge: b4ff376 4b21d3f
| | | Author: Tassilo Horn <tsdh at gnu.org>
| | |
| | | Merge branch 'master' into simplify-TeX-parse-error
So the () after the HASH indicate to which branch a commit belongs.
(I admit that I find the corresponding graph using mercurial+named
branches cleaner and leaner.)
Could a similar feature be implemented in mercurial? Most likely it
would make named branches obsolete.
Uwe Brauer
More information about the Mercurial
mailing list