added some functions for git

This commit is contained in:
Jakobus Schürz 2020-02-13 14:01:31 +01:00
parent 9b9d24da19
commit 458da61bc9

View file

@ -22,6 +22,8 @@
purge-last-commit = reset --hard HEAD~1
pushdetachedhead = push origin HEAD:master
getbranchauthor = "!f() { git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' | sort -k5n -k2M -k3n -k4n; }; f"
grepp = grep --break --heading --line-number
grephist = "!f() { regex=$1; git grep --break --heading --line-number -e $regex $(git rev-list --all); }; f"
[merge]
conflictstyle = diff3
tool = vimdiff