diff options
author | Jesse Luehrs <doy@stripe.com> | 2017-11-08 15:45:24 -0800 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-11-08 15:45:39 -0800 |
commit | b427f0c3be4544e5a294bdac53ab10fae775a0d5 (patch) | |
tree | a93fc66cb40241d4c44659b0f5d3a85692da2201 /gitconfig | |
parent | 4db750b5d05d8afd8350da0ed00f56a06d1827af (diff) | |
download | conf-b427f0c3be4544e5a294bdac53ab10fae775a0d5.tar.gz conf-b427f0c3be4544e5a294bdac53ab10fae775a0d5.zip |
more efficient to just sort correctly to begin with
Diffstat (limited to 'gitconfig')
-rw-r--r-- | gitconfig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,11 +6,11 @@ aliases = !git config --get-regexp 'alias.*' | perl -nle'/^alias\\.([^ ]*) (.*)/ && printf \"%-15s = %s\\n\", $1, $2' alias = "!f() { local name=$1; shift; git config --global alias.$name \"$*\"; }; f" amend = !git add -p && git commit --amend - bd = "!f() { git brp | fzf --height 40% --no-sort --tac | xargs git branch -D; }; f" + bd = "!f() { git brp | fzf --height 40% --no-sort | xargs git branch -D; }; f" blame-stats = !~/.bin/git/git-blame-stats br = for-each-ref --sort=committerdate refs/heads/ --format='%(align:30,left)%(HEAD) %(refname:short)%(end) %(color:green)(%(committerdate:relative))' - brp = for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short)' - c = "!f() { git brp | fzf --height 40% --no-sort --tac | xargs git co; }; f" + brp = for-each-ref --sort=-committerdate refs/heads/ --format='%(refname:short)' + c = "!f() { git brp | fzf --height 40% --no-sort | xargs git co; }; f" cc = cherry-pick co = checkout diff-branch = "!f() { local branch=${1:-HEAD}; git diff $(git merge-base master $branch) $branch; }; f" |