diff options
author | Alexey Shumkin <alex.crezoff@gmail.com> | 2013-07-05 16:01:48 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-05 11:40:18 -0700 |
commit | 17cc2ef1c5f160056f5ca8cf4bd795ddd9b76bd3 (patch) | |
tree | a6b95f53a3b8e1f1f576c8db8950a53714ccd203 /t/t4205-log-pretty-formats.sh | |
parent | f3445f781f95ca4a7d59028aa7b7457fa925f577 (diff) | |
download | git-17cc2ef1c5f160056f5ca8cf4bd795ddd9b76bd3.tar.gz |
t4205, t6006, t7102: make functions better readable
Function 'test_format' has become harder to read after its change in
de6029a2 (pretty: Add failing tests: --format output should honor
logOutputEncoding, 2013-06-26). Simplify it by moving its "should we
expect it to fail?" parameter to the end.
Note, current code does not use this last parameter as far as there
are no tests expected to fail. We can keep that for future use.
Also, reformat comments.
Signed-off-by: Alexey Shumkin <Alex.Crezoff@gmail.com>
Improved-by: Johannes Sixt <j.sixt@viscovery.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4205-log-pretty-formats.sh')
-rwxr-xr-x | t/t4205-log-pretty-formats.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh index ef9770a52b..2933c63709 100755 --- a/t/t4205-log-pretty-formats.sh +++ b/t/t4205-log-pretty-formats.sh @@ -8,7 +8,8 @@ test_description='Test pretty formats' . ./test-lib.sh commit_msg () { - # String "initial. initial" partly in German (translated with Google Translate), + # String "initial. initial" partly in German + # (translated with Google Translate), # encoded in UTF-8, used as a commit log message below. msg=$(printf "initial. anf\303\244nglich") if test -n "$1" |