summaryrefslogtreecommitdiff
path: root/t/t2200-add-update.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-03-19 15:53:17 -0700
committerJunio C Hamano <gitster@pobox.com>2013-04-26 16:09:21 -0700
commit808d3d717e86be597aa94d4a26f82a0ba5a53c22 (patch)
tree028d2eed0ffc04635571e699e7e640e28c0ee2f3 /t/t2200-add-update.sh
parentb75cdfaa882a00f2274e74b21c1a9927d184ed29 (diff)
downloadgit-808d3d717e86be597aa94d4a26f82a0ba5a53c22.tar.gz
git add: -u/-A now affects the entire working treejn/add-2.0-u-A-sans-pathspec
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 <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2200-add-update.sh')
-rwxr-xr-xt/t2200-add-update.sh9
1 files changed, 2 insertions, 7 deletions
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
'