pager - Focus HEAD initially in git log -


i use command view git commit graph:

git log --oneline --graph --decorate --all 

is there way have git log focus on head pointer initially? in: put head commit in middle of screen when run command, while still showing whole tree?

i have lots of other commits on top of me so, in every case, when run command, first thing search "\(head". it's annoying...

is there way automate initial search in less?

less take argument initial search. use when declaring pager.

example using git_pager environment variable:

git_pager='less -p"\(head"' git log --oneline --graph --decorate --all 

you set pager option global pager config or project pager config.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -