From: Saba Saba Date: Thu, 9 Feb 2023 17:26:23 +0000 (-0500) Subject: Added a rebase command X-Git-Url: http://sabadev.xyz:4321/?a=commitdiff_plain;h=074478b2c5c752e56229ef7f06e4f7885e56ce58;p=git-repl.git Added a rebase command --- 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."