Fix "log --oneline" not to show notes
This option should be treated pretty much the same as --format="%h %s". Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -192,11 +192,13 @@ test_expect_success 'git format-patch --show-notes does show notes' '
|
||||
grep spam output
|
||||
'
|
||||
|
||||
for pretty in "" raw short medium full fuller format:%s
|
||||
for pretty in \
|
||||
"" --pretty --pretty=raw --pretty=short --pretty=medium \
|
||||
--pretty=full --pretty=fuller --pretty=format:%s --oneline
|
||||
do
|
||||
case "$pretty" in
|
||||
"") p= not= negate="" ;;
|
||||
?*) p="--pretty=$pretty" not=" not" negate="!" ;;
|
||||
?*) p="$pretty" not=" not" negate="!" ;;
|
||||
esac
|
||||
test_expect_success "git show $pretty does$not show notes" '
|
||||
git show $p >output &&
|
||||
|
Reference in New Issue
Block a user