diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2020-08-27 08:21:25 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-27 15:59:13 (GMT) |
commit | e8e1ff24c5cf885c8d0ac208b58ccaf3760e8bfa (patch) | |
tree | 4d72a0cae04162794a490e45a8c9fa7dcbcfc91b /t/t2406-worktree-repair.sh | |
parent | e9b77c84a0a0df029f2a3a8114e9f22186e7da24 (diff) | |
download | git-e8e1ff24c5cf885c8d0ac208b58ccaf3760e8bfa.zip git-e8e1ff24c5cf885c8d0ac208b58ccaf3760e8bfa.tar.gz git-e8e1ff24c5cf885c8d0ac208b58ccaf3760e8bfa.tar.bz2 |
worktree: add skeleton "repair" command
Worktree administrative files can become corrupted or outdated due to
external factors. Although, it is often possible to recover from such
situations by hand-tweaking these files, doing so requires intimate
knowledge of worktree internals. While information necessary to make
such repairs manually can be obtained from git-worktree.txt and
gitrepository-layout.txt, we can assist users more directly by teaching
git-worktree how to repair its administrative files itself (at least to
some extent). Therefore, add a "git worktree repair" command which
attempts to correct common problems which may arise due to factors
beyond Git's control.
At this stage, the "repair" command is a mere skeleton; subsequent
commits will flesh out the functionality.
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2406-worktree-repair.sh')
-rwxr-xr-x | t/t2406-worktree-repair.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/t2406-worktree-repair.sh b/t/t2406-worktree-repair.sh new file mode 100755 index 0000000..cc679e1 --- /dev/null +++ b/t/t2406-worktree-repair.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +test_description='test git worktree repair' + +. ./test-lib.sh + +test_expect_success setup ' + test_commit init +' + +test_done |