]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-worktree.txt
worktree: add skeleton "repair" command
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 27 Aug 2020 08:21:25 +0000 (04:21 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Aug 2020 15:59:13 +0000 (08:59 -0700)
commite8e1ff24c5cf885c8d0ac208b58ccaf3760e8bfa
tree4d72a0cae04162794a490e45a8c9fa7dcbcfc91b
parente9b77c84a0a0df029f2a3a8114e9f22186e7da24
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>
Documentation/git-worktree.txt
builtin/worktree.c
t/t2406-worktree-repair.sh [new file with mode: 0755]