diff options
Diffstat (limited to 't/t2200-add-update.sh')
| -rwxr-xr-x | t/t2200-add-update.sh | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh index b664341926..f57a6e077c 100755 --- a/t/t2200-add-update.sh +++ b/t/t2200-add-update.sh @@ -111,4 +111,21 @@ test_expect_success 'touch and then add explicitly' '  ' +test_expect_success 'add -n -u should not add but just report' ' + +	( +		echo "add '\''check'\''" && +		echo "remove '\''top'\''" +	) >expect && +	before=$(git ls-files -s check top) && +	echo changed >>check && +	rm -f top && +	git add -n -u >actual && +	after=$(git ls-files -s check top) && + +	test "$before" = "$after" && +	test_cmp expect actual + +' +  test_done | 
