Thread (75 messages) flat view 75 messages, 8 authors, 2021-12-13

Re: [PATCH 1/6] t2500: add various tests for nuking untracked files

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2021-09-19 13:48:01

On Sat, Sep 18 2021, Elijah Newren via GitGitGadget wrote:
+	test_create_repo reset_$1 &&
s/test_create_repo/git init/ these days (also for the rest).
+		mkdir foo.t &&
+		echo precious >foo.t/file &&
+		cp foo.t/file expect &&
+
+		test_must_fail git reset --merge work 2>error &&
+		test_cmp expect foo.t/file &&
+		grep "Updating.*foo.t.*would lose untracked files" error
The test is ambiguous about whether we complain about foo.t/file, or
foo.t, if there was foo.t{file,file-two} would we complain just once or
twice?

I think it's just the directory, but probably worthwhile for the test to
make the distinction. If it's a "a/sub/dir/file" do we complain about
"a/" or "a/sub/dir/" ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help