exa/xtests/git_1_recurse
Benjamin Sago 45a807a14f Redo Git implementation to allow --git --recurse
This is all a big commit because it took a lot more work than I thought it would! The commit basically moves Git repositories from being per-directory to living for the whole life of the program. This allows for several directories in the same repository to be listed in the same invocation; before, it would try to rediscover the repository each time! This is why two of the tests “broke”: it suddenly started working with --recurse.

The Dir type does now not use Git at all; because a Dir doesn’t have a Git, then a File doesn’t have one either, so the Git cache gets passed to the render functions which will put them in the Table to render them.
2017-09-01 19:13:47 +01:00

1.6 KiB

drwxrwxr-x - cassowary 1 Jan 12:34 NN additions
drwxrwxr-x - cassowary 1 Jan 12:34 MM edits
drwxrwxr-x - cassowary 1 Jan 12:34 N- moves
 
/testcases/git/additions:
.rw-rw-r-- 20 cassowary 1 Jan 12:34 NM edited
.rw-rw-r-- 0 cassowary 1 Jan 12:34 N- staged
.rw-rw-r-- 0 cassowary 1 Jan 12:34 -N unstaged
 
/testcases/git/edits:
.rw-rw-r-- 20 cassowary 1 Jan 12:34 MM both
.rw-rw-r-- 15 cassowary 1 Jan 12:34 M- staged
.rw-rw-r-- 20 cassowary 1 Jan 12:34 -M unstaged
 
/testcases/git/moves:
.rw-rw-r-- 21 cassowary 1 Jan 12:34 N- thither