Skip to content

Commit

Permalink
t6006: clean up whitespace
Browse files Browse the repository at this point in the history
The test_format function did not indent its in-line test
script in an attempt to make the output of the test look
better. But it does not make a big difference to the output,
and the source looks quite ugly. Let's use our normal
indenting instead.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Dec 18, 2012
1 parent bdd478d commit 2581ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/t6006-rev-list-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ touch foo && git add foo && git commit -m "added foo" &&
'

# usage: test_format name format_string <expected_output
test_format() {
test_format () {
cat >expect.$1
test_expect_success "format $1" "
git rev-list --pretty=format:'$2' master >output.$1 &&
test_cmp expect.$1 output.$1
"
git rev-list --pretty=format:'$2' master >output.$1 &&
test_cmp expect.$1 output.$1
"
}

test_format percent %%h <<'EOF'
Expand Down

0 comments on commit 2581ad5

Please sign in to comment.