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

index 8517012..ae263ef 100644 (file)
 (defun no-skip-all ()
   (mapcar #'no-skip-file (skipped-files)))
 
+(defun save-stash ()
+  (git "stash"))
+
+(defun pop-stash ()
+  (git "stash" "pop"))
+
+(defun stash-config ()
+  (progn
+    (no-skip-all)
+    (save-stash)))
+
+(defun pop-config ()
+  (progn
+    (pop-stash)
+    (skip-modified)))
+
 (defun delete-branch (branch-name)
   (git "branch" "-d" branch-name))