Added a rebase command
authorSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:23 +0000 (12:26 -0500)
committerSaba Saba <saba@sabadev.xyz>
Thu, 9 Feb 2023 17:26:23 +0000 (12:26 -0500)
git-repl.cl

index 51abdf8..0e49db6 100644 (file)
   "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."