Implemented skip-modified and no-skip-all
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-skipper.cl

index 91fa485..4a16240 100644 (file)
 (defun no-skip-file (file-path)
   (git "update-index" "--no-skip-worktree" file-path))
 
+(defun skip-modified ()
+  (mapcar #'skip-file (modified-files)))
+
+(defun no-skip-all ()
+  (mapcar #'no-skip-file (skipped-files)))
+
 (defun status ()
   (git "status"))
 
-(no-skip-file "git-skipper.cl")
-(skip-file "git-skipper.cl")
+(no-skip-all)
+(skip-modified)
 (modified-files)
 (skipped-files)