How can one "git describe" each commit?

For example, something like this:

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

Or that:

$ 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

Isn't that cool?

+5
source share
1 answer

This function does not currently exist in mainline git. You can use your own (using git rev-listwith git describeand git log) and / or send the patch to the git project.

+3
source

All Articles