Commit 7e9c769
committed
Combine "slashes" scripts and make it a fixture
Keeping the changes to make_traverse_dotdot_slashes.sh, this folds
the make_traverse_dotgit_slsahes.sh logic into it, extracting the
twice-used parts (which are most of the script) into a function
that both call. Other changes:
- No longer use command-line arguments. There are two repositories
that are currently useful to make in this way, and this calls the
function for each of them.
- Change the style to mostly match that of other fixture scripts,
including decreasing the indent from 4 to 2 and using the
function keyword when defining functions.
- Shorten variable names in cases where doing so is unambiguous
(but not otherwise).
- Eliminate the emit_payload function, since the new make_repo
function now receives the content on standard input, which can
be provided by whatever means is convenient (the current calls
use a here string for the one-line file and a heredoc otherwise).1 parent fe8c2c9 commit 7e9c769
File tree
3 files changed
+35
-62
lines changed- gix-worktree/tests/fixtures
3 files changed
+35
-62
lines changedLines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
| 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 | + | |
0 commit comments