From 808d3d717e86be597aa94d4a26f82a0ba5a53c22 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Tue, 19 Mar 2013 15:53:17 -0700 Subject: git add: -u/-A now affects the entire working tree As promised in 0fa2eb530fb7 (add: warn when -u or -A is used without pathspec, 2013-01-28), in Git 2.0, "git add -u/-A" that is run without pathspec in a subdirectory updates all updated paths in the entire working tree, not just the current directory and its subdirectories. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- t/t2200-add-update.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 't/t2200-add-update.sh') diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh index b2bd41918e..9c7419f450 100755 --- a/t/t2200-add-update.sh +++ b/t/t2200-add-update.sh @@ -80,18 +80,13 @@ test_expect_success 'change gets noticed' ' ' -# Note that this is scheduled to change in Git 2.0, when -# "git add -u" will become full-tree by default. -test_expect_success 'non-limited update in subdir leaves root alone' ' +test_expect_success 'non-qualified update in subdir updates from the root' ' ( cd dir1 && echo even more >>sub2 && git add -u ) && - cat >expect <<-\EOF && - check - top - EOF + : >expect && git diff-files --name-only >actual && test_cmp expect actual ' -- cgit v1.2.1