Skip to content

Commit

Permalink
git plugin: add convenience aliases for git apply and git am
Browse files Browse the repository at this point in the history
These are common operations when applying patches from mbox files on
mailing list based projects like U-Boot or the Linux
Kernel.
  • Loading branch information
larumbe authored and Eneko Etxezaharra committed May 17, 2020
1 parent cbd6fbe commit ebf57b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/git/git.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ alias gapa='git add --patch'
alias gau='git add --update'
alias gav='git add --verbose'
alias gap='git apply'
alias gapt='git apply --3way'

alias gb='git branch'
alias gba='git branch -a'
Expand Down Expand Up @@ -257,6 +258,12 @@ alias glum='git pull upstream master'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify --no-gpg-sign -m "--wip-- [skip ci]"'

alias gam='git am'
alias gamc='git am --continue'
alias gams='git am --skip'
alias gama='git am --abort'
alias gamscp='git am --show-current-patch'

function grename() {
if [[ -z "$1" || -z "$2" ]]; then
echo "Usage: $0 old_branch new_branch"
Expand Down

0 comments on commit ebf57b0

Please sign in to comment.