Skip to content

Commit 15405cd

Browse files
pks-tgitster
authored andcommitted
contrib: remove "git-new-workdir"
The "git-new-workdir" command has been introduced to make it possible to have a separate working directory in a different place. The command thus predates git-worktree(1), which is what people use nowadays to create any such working directory. As such, the script doesn't really have much of a reason to exist nowadays anymore. It also doesn't seem like the script is still in use: the last time it has received an update was in e32afab (git-new-workdir: don't fail if the target directory is empty, 2014-11-26), more than a decade ago. Remove it as well as the tests that depend on it. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 95bc447 commit 15405cd

File tree

5 files changed

+0
-184
lines changed

5 files changed

+0
-184
lines changed

contrib/workdir/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/workdir/git-new-workdir

Lines changed: 0 additions & 105 deletions
This file was deleted.

t/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ integration_tests = [
178178
't1015-read-index-unmerged.sh',
179179
't1016-compatObjectFormat.sh',
180180
't1020-subdirectory.sh',
181-
't1021-rerere-in-workdir.sh',
182181
't1022-read-tree-partial-clone.sh',
183182
't1050-large.sh',
184183
't1051-large-conversion.sh',

t/t1021-rerere-in-workdir.sh

Lines changed: 0 additions & 58 deletions
This file was deleted.

t/t3000-ls-files-others.sh

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,6 @@ test_expect_success 'ls-files --others handles non-submodule .git' '
7373
test_cmp expected1 output
7474
'
7575

76-
test_expect_success SYMLINKS 'ls-files --others with symlinked submodule' '
77-
git init super &&
78-
git init sub &&
79-
(
80-
cd sub &&
81-
>a &&
82-
git add a &&
83-
git commit -m sub &&
84-
git pack-refs --all
85-
) &&
86-
(
87-
cd super &&
88-
"$SHELL_PATH" "$TEST_DIRECTORY/../contrib/workdir/git-new-workdir" ../sub sub &&
89-
git ls-files --others --exclude-standard >../actual
90-
) &&
91-
echo sub/ >expect &&
92-
test_cmp expect actual
93-
'
94-
9576
test_expect_success 'setup nested pathspec search' '
9677
test_create_repo nested &&
9778
(

0 commit comments

Comments
 (0)