t1100: modernize test style

The tests in this script use the old style in which the test title and body are passed as separate backslash-continued arguments, with bodies indented using spaces: test_expect_success \ 'title' \ 'body' Convert them to the modern style in which the body is a single-quoted block on its own lines, indented with a tab: test_expect_success 'title' ' body ' While at it, remove an extraneous blank line between two tests. This is a style-only change; no test logic is modified. Signed-off-by: Shlok Kulshreshtha <diy2903@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Shlok Kulshreshtha committed Jul 14, 2026 at 17:50 UTC 678f3bb60dabece745b95f3a268813a7b17d6955
1 file changed +21 -22
t/t1100-commit-tree-options.sh
+21 -22
@@ -22,29 +22,28 @@ committer Committer Name <committer@email> 1117150200 +0000
22 comment text
23 EOF
24
25 -test_expect_success \
26 - 'test preparation: write empty tree' \
27 - 'git write-tree >treeid'
28 -
29 -test_expect_success \
30 - 'construct commit' \
31 - 'echo comment text |
32 - GIT_AUTHOR_NAME="Author Name" \
33 - GIT_AUTHOR_EMAIL="author@email" \
34 - GIT_AUTHOR_DATE="2005-05-26 23:00" \
35 - GIT_COMMITTER_NAME="Committer Name" \
36 - GIT_COMMITTER_EMAIL="committer@email" \
37 - GIT_COMMITTER_DATE="2005-05-26 23:30" \
38 - TZ=GMT git commit-tree $(cat treeid) >commitid 2>/dev/null'
39 -
40 -test_expect_success \
41 - 'read commit' \
42 - 'git cat-file commit $(cat commitid) >commit'
43 -
44 -test_expect_success \
45 - 'compare commit' \
46 - 'test_cmp expected commit'
25 +test_expect_success 'test preparation: write empty tree' '
26 + git write-tree >treeid
27 +'
28 +
29 +test_expect_success 'construct commit' '
30 + echo comment text |
31 + GIT_AUTHOR_NAME="Author Name" \
32 + GIT_AUTHOR_EMAIL="author@email" \
33 + GIT_AUTHOR_DATE="2005-05-26 23:00" \
34 + GIT_COMMITTER_NAME="Committer Name" \
35 + GIT_COMMITTER_EMAIL="committer@email" \
36 + GIT_COMMITTER_DATE="2005-05-26 23:30" \
37 + TZ=GMT git commit-tree $(cat treeid) >commitid 2>/dev/null
38 +'
39
40 +test_expect_success 'read commit' '
41 + git cat-file commit $(cat commitid) >commit
42 +'
43 +
44 +test_expect_success 'compare commit' '
45 + test_cmp expected commit
46 +'
47
48 test_expect_success 'flags and then non flags' '
49 test_tick &&