Skip to content

Commit

Permalink
Merge branch 'jc/add-2.0-u-A-sans-pathspec' (early part)
Browse files Browse the repository at this point in the history
* 'jc/add-2.0-u-A-sans-pathspec' (early part):
  t2200: check that "add -u" limits itself to subdirectory
  • Loading branch information
Junio C Hamano committed Mar 19, 2013
2 parents a6da9cb + 7bf7a92 commit 4d5dcd9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions t/t2200-add-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@ 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' '
(
cd dir1 &&
echo even more >>sub2 &&
git add -u
) &&
cat >expect <<-\EOF &&
check
top
EOF
git diff-files --name-only >actual &&
test_cmp expect actual
'

test_expect_success SYMLINKS 'replace a file with a symlink' '
rm foo &&
Expand Down

0 comments on commit 4d5dcd9

Please sign in to comment.