From e25953d913c9a1d1508bb332de0d70972900fd07 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Tue, 21 Sep 2021 16:53:07 +0000 Subject: [PATCH] aliases: fix gfrb rebasing on non-default origins Add gfrbi for an interactive fetch-and-rebase. Signed-off-by: Joe Groocock --- aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index 54cad09..e5b84b8 100644 --- a/aliases +++ b/aliases @@ -137,7 +137,8 @@ alias grbc="grb --continue" alias grbsk="grb --skip" alias grbsh="grb --show-current" alias grbom="git rebase origin/master" -alias gfrb="git fetch && git rebase" +gfrb() { remote="${1%/*}"; git fetch "$remote" && git rebase "$@"; } +gfrbi() { remote="${1%/*}"; git fetch "$remote" && git rebase -i "$@"; } alias gam="git am" alias gama="git am --abort"