git - How can I display commit's position in the history relative to tags (and branches)? -


i'm looking way information commit occurred relative tags (and branches if possible). there kind of command or group of commands (if necessary, can use commands well) give commit hash , receive list of tags (and branches) in order commit in correct position relative other tags? example, if <commit-hash> occurred between tag2 , tag3, following command:

[command(s)] <commit-hash> 

would result in following output:

branch1 tag1 tag2 <commit-hash> tag3 branch2 master 

i tried using git log this, i'm not sure start. possible?

git describe --tags $rev give short description (see man page details) of tag before revision.

git describe --contains $rev give first tag contains revision.

git rev-list --branches --tags $rev might useful place start also. might able want using of "history simplification" arguments function. i'd try --simplify-by-decoration first , possibly --dense.

to control output of git rev-list can use --format argument. use --format=%d ref names (in unfortunately annoying format however).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -