Prepare for porcelain status parsing.
This commit is contained in:
parent
324d330102
commit
afeaa4f28b
1 changed files with 9 additions and 0 deletions
|
@ -71,4 +71,13 @@
|
||||||
(lambda args
|
(lambda args
|
||||||
(invoke-git repo args))))))
|
(invoke-git repo args))))))
|
||||||
|
|
||||||
|
;; Returns a dictionary of unknown, modified, deleted and added files
|
||||||
|
(define (git-status repo)
|
||||||
|
(let loop ((lines ((git repo) 'status '--porcelain))
|
||||||
|
(res (make-ldict)))
|
||||||
|
(if (null? lines)
|
||||||
|
res
|
||||||
|
(loop (cdr lines)
|
||||||
|
res))))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue