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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -