(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 (split-prefix str)
+ (define components (string-split str))
+ (define prefix (car components))
+ (define tail (string-join (list-tail components 1)))
+ (cons prefix tail))
+
+(define (ls-files arg) (map split-prefix (git "ls-files" "-v" arg)))
(define (modified-files) (ls-files "-m"))
(modified-files)