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:
Junio C Hamano
2010-01-21 14:57:41 -08:00
parent 66b2ed09c2
commit 7dccadf363
3 changed files with 7 additions and 4 deletions

View File

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