comparison .gitconfig @ 792:0aa1d72ef538

add log graph alias
author Jeff Hammel <k0scist@gmail.com>
date Wed, 05 Oct 2016 13:50:55 -0700
parents fa3ad63ec3a3
children 446107608d89
comparison
equal deleted inserted replaced
791:46674fb64686 792:0aa1d72ef538
5 email = jehammel@cisco.com 5 email = jehammel@cisco.com
6 [alias] 6 [alias]
7 branches = branch -a 7 branches = branch -a
8 branchname = git rev-parse --abbrev-ref HEAD 8 branchname = git rev-parse --abbrev-ref HEAD
9 discard = reset HEAD --hard 9 discard = reset HEAD --hard
10 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative
10 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff 11 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff
11 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) 12 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD)
12 root = rev-parse --show-toplevel 13 root = rev-parse --show-toplevel
13 st = status 14 st = status
14 subscribe-pulls = !"f() { REMOTE=${1:-origin}; if ! git config --local --get-all remote.${REMOTE}.fetch | grep -q refs/pull; then echo 'subscribing...' 2>&1; git config --local --add remote.${REMOTE}.fetch '+refs/pull/*/head:refs/remotes/pr/*'; fi; }; f" 15 subscribe-pulls = !"f() { REMOTE=${1:-origin}; if ! git config --local --get-all remote.${REMOTE}.fetch | grep -q refs/pull; then echo 'subscribing...' 2>&1; git config --local --add remote.${REMOTE}.fetch '+refs/pull/*/head:refs/remotes/pr/*'; fi; }; f"