From fe7c6018f5201c99be0cad74c12d046c81867540 Mon Sep 17 00:00:00 2001 From: Chad Metcalf Date: Sun, 29 Jan 2012 22:10:59 -0800 Subject: [PATCH] Adding aliases for incoming/outgoing patches. --- plugins/git/git.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index e1d682508..23ed3be65 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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