Merge remote branch 'upstream/master'

Conflicts:
	lib/functions.zsh
	plugins/git/git.plugin.zsh
	plugins/perl/perl.plugin.zsh
This commit is contained in:
Natal Ngétal 2011-04-15 15:10:55 +02:00
commit 6f7d2eb772
63 changed files with 1284 additions and 94 deletions

View file

@ -1,25 +1,36 @@
# Aliases
alias g='git'
compdef g=git
alias gst='git status'
alias gsts='git status --short'
alias gl='git pull'
compdef _git gl=git-pull
alias gup='git fetch && git rebase'
compdef _git gup=git-fetch
alias gp='git push'
alias gd='git diff | mate'
alias gdv='git diff -w "$@" | vim -R -'
compdef _git gp=git-push
gdv() { git-diff -w "$@" | view - }
compdef _git gdv=git-diff
alias gc='git commit -v'
compdef _git gc=git-commit
alias gca='git commit -v -a'
compdef _git gca=git-commit
alias gco='git checkout'
compdef _git gco=git-checkout
alias gb='git branch'
compdef _git gb=git-branch
alias gba='git branch -a'
compdef _git gba=git-branch
alias gcount='git shortlog -sn'
compdef gcount=git
alias gcp='git cherry-pick'
alias gcpe='git cherry-pick --edit '
compdef _git gcp=git-cherry-pick
alias glg='git log --stat --max-count=5'
compdef _git glg=git-log
# Git and svn mix
alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
alias gsup= !DIRTY=$(git status --porcelain -uno) && git stash save svn-up-auto && git svn rebase && test -n \"$DIRTY\" && git stash pop
alias gsc=!DIRTY=$(git status --porcelain -uno) && git stash save svn-up-auto && git svn dcommit && test -n \"$DIRTY\" && git stash pop
compdef git-svn-dcommit-push=git
#
# Will return the current branch name
@ -30,7 +41,10 @@ function current_branch() {
echo ${ref#refs/heads/}
}
# these aliases take advangate of the previous function
# these aliases take advantage of the previous function
alias ggpull='git pull origin $(current_branch)'
compdef ggpull=git
alias ggpush='git push origin $(current_branch)'
compdef ggpush=git
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
compdef ggpnp=git