Merge branch 'jc/parse-options-boolean'
* jc/parse-options-boolean: apply: use OPT_NOOP_NOARG revert: use OPT_NOOP_NOARG parseopt: add OPT_NOOP_NOARG archive.c: use OPT_BOOL() parse-options: deprecate OPT_BOOLEAN Conflicts: builtin/revert.c
This commit is contained in:
@ -87,7 +87,7 @@ EOF
|
||||
test_expect_success 'long options' '
|
||||
test-parse-options --boolean --integer 1729 --boolean --string2=321 \
|
||||
--verbose --verbose --no-dry-run --abbrev=10 --file fi.le\
|
||||
> output 2> output.err &&
|
||||
--obsolete > output 2> output.err &&
|
||||
test ! -s output.err &&
|
||||
test_cmp expect output
|
||||
'
|
||||
|
@ -57,6 +57,15 @@ test_expect_missing worktree/ignored
|
||||
test_expect_exists worktree/ignored-by-tree
|
||||
test_expect_missing worktree/ignored-by-worktree
|
||||
|
||||
test_expect_success 'git archive --worktree-attributes option' '
|
||||
git archive --worktree-attributes --worktree-attributes HEAD >worktree.tar &&
|
||||
(mkdir worktree2 && cd worktree2 && "$TAR" xf -) <worktree.tar
|
||||
'
|
||||
|
||||
test_expect_missing worktree2/ignored
|
||||
test_expect_exists worktree2/ignored-by-tree
|
||||
test_expect_missing worktree2/ignored-by-worktree
|
||||
|
||||
test_expect_success 'git archive vs. bare' '
|
||||
(cd bare && git archive HEAD) >bare-archive.tar &&
|
||||
test_cmp archive.tar bare-archive.tar
|
||||
|
Reference in New Issue
Block a user