git log - Display git log --graph --decorate with HEAD on top -


with command:

git log --all -n30 --graph --abbrev-commit --decorate \    --date=relative --format=format:'%h - (%ar) %s - %an%d' 

i wonderful tree looking except head not on top.

if remove --all option, lose displayed branches.

how can keep both head on top , still see full tree visible last 30 elements?

in other words

   * d4b7d5a - (foo)    * * 44f53e2 - (head)    |/    * 4587f32 - (bar) 

and want is:

   * 44f53e2 - (head)  <- head on top    | * d4b7d5a - (foo)    |/    * 4587f32 - (bar) 

unfortunately dont believe possible, since d4b7d5a(foo) commit made after head. reverse order of log thats not point. way know leave head on top option '--before' display commits made before head.

you can find more --before , others filters here: https://www.atlassian.com/git/tutorials/git-log

any way, can find similar question here: git log --graph; head top

but there no solution there either.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -