git-sync/_test_tools
Tim Hockin ee6664748f Total overhaul of sync loop
The previous (v3) sync loop betrays my lack of understanding about git.
It tried to codify my archaic mental model (e.g. --branch and --rev
being disting things) and was ultimately a patchwork of corner-cases
evolved over a few years.

This commit is less of a "diff" and more of a "rewrite".

The new logic is simpler and more efficient.  It does not `git clone`
ever.  It does not differentiate the first sync from subsequent syncs.
It uses `git fetch` to get the exact SHA and then makes a worktree from
that.

The new `--ref` flag replaces both `--rev` and `--branch`, though it
will use those if specified.  In fact, almost all of the e2e tests
passed without change - using --ref and --branch!

I will follow this commit up with more cleanups and e2es.
2023-04-21 17:25:25 -07:00
..
ncsvr e2e: Fix ncsvr to wait for input on HTTP 2022-07-03 11:36:05 -07:00
sshd Make sure all code files have headers 2021-05-27 08:46:00 -07:00
exechook_command.sh e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
exechook_command_fail.sh e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
exechook_command_fail_with_sleep.sh e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
exechook_command_with_sleep.sh e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
git_askpass.sh e2e: move helper scripts to _test_tools/ 2023-02-15 12:22:29 -08:00
git_slow_fetch.sh Total overhaul of sync loop 2023-04-21 17:25:25 -07:00