aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-10-14 16:13:20 -0700
committerJunio C Hamano <gitster@pobox.com>2009-10-14 16:13:20 -0700
commitc274db7057318835e975c26284f6f9d723b938f3 (patch)
tree61e82973be37e948b46be27a101e0498938a585a /t
parent695f9523ddfa0a2b8325507b4f077b073d8f438f (diff)
parentb145b211baa4129a827cc1b1b1a7984523b8f903 (diff)
downloadgit-c274db7057318835e975c26284f6f9d723b938f3.tar.gz
git-c274db7057318835e975c26284f6f9d723b938f3.tar.xz
Merge branch 'pv/maint-add-p-no-exclude'
* pv/maint-add-p-no-exclude: git-add--interactive: never skip files included in index
Diffstat (limited to 't')
-rwxr-xr-xt/t3701-add-interactive.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t3701-add-interactive.sh b/t/t3701-add-interactive.sh
index 62fd65e18..687bd7ab5 100755
--- a/t/t3701-add-interactive.sh
+++ b/t/t3701-add-interactive.sh
@@ -138,6 +138,20 @@ test_expect_success 'real edit works' '
test_cmp expected output
'
+test_expect_success 'skip files similarly as commit -a' '
+ git reset &&
+ echo file >.gitignore &&
+ echo changed >file &&
+ echo y | git add -p file &&
+ git diff >output &&
+ git reset &&
+ git commit -am commit &&
+ git diff >expected &&
+ test_cmp expected output &&
+ git reset --hard HEAD^
+'
+rm -f .gitignore
+
if test "$(git config --bool core.filemode)" = false
then
say 'skipping filemode tests (filesystem does not properly support modes)'