projects
/
git-skipper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bafe8b
)
Added methods to execute 'git ls-files'.
author
sabadev
<saba@sabadev.xyz>
Mon, 12 Jul 2021 00:49:50 +0000
(20:49 -0400)
committer
sabadev
<saba@sabadev.xyz>
Mon, 12 Jul 2021 00:49:50 +0000
(20:49 -0400)
git-skipper.rkt
patch
|
blob
|
history
diff --git
a/git-skipper.rkt
b/git-skipper.rkt
index
7bc35af
..
2d7d35f
100644
(file)
--- a/
git-skipper.rkt
+++ b/
git-skipper.rkt
@@
-1
+1,12
@@
#lang racket/base
+
+(require racket/system
+ racket/port
+ racket/string)
+
+(define (git . args) (string-split (with-output-to-string (λ () (system (string-join (cons "git" args))))) "\n"))
+
+(define (ls-files arg) (git "ls-files" "-v" arg))
+(define (modified-files) (ls-files "-m"))
+
+(modified-files)