Stripping 'S ' from each file returned by skipped-files
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 7556966..91fa485 100644 (file)
@@ -21,7 +21,7 @@
   (git "diff" "--name-only"))
 
 (defun skipped-files ()
-  (git "ls-files" "-v" "|" *grep* "^S"))
+  (mapcar (lambda (x) (str:substring 2 t x)) (git "ls-files" "-v" "|" *grep* "^S")))
 
 (defun skip-file (file-path)
   (git "update-index" "--skip-worktree" file-path))