Merge branch 'jc/add-2.0-u-A-sans-pathspec' (early part)

* 'jc/add-2.0-u-A-sans-pathspec' (early part):
  t2200: check that "add -u" limits itself to subdirectory
This commit is contained in:
Junio C Hamano 2013-03-19 12:21:27 -07:00
Родитель a6da9cba61 7bf7a92f69
Коммит 4d5dcd976d
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -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 &&