(define (split-prefix str)
(define components (string-split str))
- (define prefix (car components))
+ (define head (car components))
(define tail (string-join (list-tail components 1)))
- (cons prefix tail))
+ (cons head tail))
-(define (ls-files arg) (map split-prefix (git "ls-files" "-v" arg)))
+(define (ls-files . args) (map split-prefix (git "ls-files" "-v" (string-join args))))
(define (modified-files) (ls-files "-m"))
+(define (skipped-files) (filter (λ (pair) (equal? "S" (car pair))) (ls-files)))
+(skipped-files)
(modified-files)