Commit 6f44aca
committed
Combine non-"slashes" (i.e. trees) scripts and make it a fixture
At least for now, this does not test the creation of multiple files
at a time outside of a repository, nor multi-step upward traversal
with many `../../..` components, since tests using such fixtures
would be complicated, and may or may not be warranted in the test
suite.
However, this combines substantial elements of the scripts that
create repositories with unexpected tree objects (e.g., `..` trees)
to make a make_traverse_trees.sh script that, when run, produces
repositories for testing that traverse:
- Upward with a `..` tree: `traverse_dotdot_tree`
- Downward with `.git` and `hooks` trees: `traverse_dotgit_trees`
- Similar but with an NTFS stream alias: `traverse_dotgit_stream`
This replaces the `make_traverse_dotdot_trees.sh` and
`make_traverse_ntfs_streams.sh` scripts with one script that takes
no command-line arguments and creates multiple repos by calling
a function. This is thus architecturally similar, broadly speaking,
to `make_traverse_literal_slashes.sh`, but that produces repos with
very strangely named blobs, rather than with strangly named trees.1 parent 7e9c769 commit 6f44aca
File tree
3 files changed
+39
-61
lines changed- gix-worktree/tests/fixtures
3 files changed
+39
-61
lines changedLines changed: 0 additions & 33 deletions
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments