mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-25 13:27:33 +00:00
45a807a14f
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.
1.6 KiB
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
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