mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Adding aliases for incoming/outgoing patches.
This commit is contained in:
parent
362927003b
commit
fe7c6018f5
1 changed files with 3 additions and 0 deletions
|
|
@ -54,6 +54,9 @@ function current_branch() {
|
|||
echo ${ref#refs/heads/}
|
||||
}
|
||||
|
||||
alias incoming='git log ..origin/$(current_branch)'
|
||||
alias outgoing='git log origin/$(current_branch)..'
|
||||
|
||||
# these aliases take advantage of the previous function
|
||||
alias ggpull='git pull origin $(current_branch)'
|
||||
compdef ggpull=git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue