From 074478b2c5c752e56229ef7f06e4f7885e56ce58 Mon Sep 17 00:00:00 2001 From: Saba Saba Date: Thu, 9 Feb 2023 12:26:23 -0500 Subject: [PATCH] Added a rebase command --- git-repl.cl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-repl.cl b/git-repl.cl index 51abdf8..0e49db6 100644 --- a/git-repl.cl +++ b/git-repl.cl @@ -195,6 +195,11 @@ "Deletes every local branch covered by \'git branch --merged\'" (git-chunked-command "branch" "-d" (git "branch" "--merged"))) +(defun-public rebase (revision &key (without-config nil)) + "Performs a rebase + If :without-config is set to T (default is NIL), stashes your configuration before the rebase and pops the stash afterwards." + (toggle-without-config without-config (git "rebase" revision))) + (defun-public checkout (revision &key (without-config nil)) "Checks out the specified revision. If :without-config is set to T (default is NIL), stashes your configuration before the checkout and pops the stash afterwards." -- 2.20.1