Permalink
Browse files

complete for gcp, gbh

  • Loading branch information...
1 parent 349c7ac commit c5a51e902a2052b60079b4816584212c51ce4542 @jakub-g committed Mar 6, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 git.profile
View
5 git.profile
@@ -80,6 +80,9 @@ alias glog3="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Crese
# Display recent local branches and last commit date (sorted by last commit date)
alias gb='git for-each-ref --sort=-committerdate --format="%(committerdate:short) %(refname:short)" refs/heads/'
+# Display recent local branches - only a few of them (10 by default)
+alias gbh='gb | head'
+
# Display recent local branches - short (only names) (sorted by last commit date)
alias gbs='git for-each-ref --sort=-committerdate --format="%(refname:short)" refs/heads/'
@@ -172,9 +175,11 @@ alias gamenddate='git commit --amend --date="$(date -R)"'
# Cherry-pick
alias gcp='git cherry-pick'
+complete -F _gitbranches gcp
# Cherry-pick / back-port the bugfix: append a line that says "(cherry picked from commit ...)"
alias gcpx='git cherry-pick -x'
+complete -F _gitbranches gcpx
# ======================================================
# executing pre-commit hook

0 comments on commit c5a51e9

Please sign in to comment.