When I'm coding, I usually have 2 terminal tabs open in VSCode. The tab on the left is used for git commands. The tab on the right always has
git log --all --graph --decorate --oneline showing me all the branches and commits.
I'm trying to make it so that the tab on the right reruns the
git log command as soon as I checkout branches, checkout new branches, commit, push, pull...
I tried this:
# watchgit.sh inotifywait -m .git/refs -m .git/HEAD | while read dir action file; do git log done
but it doesn't refresh. I also don't mind if I get a few extra refreshes here and there.
Would appreciate some help.