From 3770a56d8807f850a521c2a8c96ab53673103998 Mon Sep 17 00:00:00 2001 From: Saba Saba Date: Thu, 9 Feb 2023 12:26:24 -0500 Subject: [PATCH] Added set-config --- git-repl.cl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git-repl.cl b/git-repl.cl index 5f74a9c..34b3e29 100644 --- a/git-repl.cl +++ b/git-repl.cl @@ -199,6 +199,12 @@ "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)) -- 2.20.1