Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How might one "git describe" every commit?

Tags:

git

For instance, something like this:

$ git describe --all
v0-5-g654178b
v0-4-gf7127a0
v0-3-gbb3ab93
v0-2-gf193081
v0-1-g892d3ad
v0

Or this:

$ git log --oneline --decorate --describe
v0-5-g654178b (HEAD, master) improved documentation
v0-4-gf7127a0 Senseless commit to trigger ci build
v0-3-gbb3ab93 fixed the fix
v0-2-gf193081 refactored nertz
v0-1-g892d3ad WIP first foray into i18n
v0 (tag: v0, origin/master) Initial commit

Wouldn't that be cool?

like image 780
Adam Monsen Avatar asked Oct 23 '22 19:10

Adam Monsen


1 Answers

This feature does not currently exist in mainline git. You could roll your own (using git rev-list with git describe and git log), and/or submit a patch to the git project.

like image 131
bdonlan Avatar answered Oct 27 '22 09:10

bdonlan