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

index 5f74a9c..34b3e29 100644 (file)
   "Saves the current configuration to the specified file"
   (config-do (str:to-file file-path (run-git '("diff")))))
 
+(defun-public set-config (file-path)
+  "Applies the configuration from the specified file and skips it"
+  (clean-working-directory
+    (git "apply" file-path)
+    (skip-modified)))
+
 (defun-public delete-branch (branch-name)
   "Deletes the given local branch name"
   (git "branch" "-d" branch-name))