Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 3 | # Copyright (c) 2009 Jens Lehmann |
| 4 | # Copyright (c) 2011 Alexey Shumkin (+ non-UTF-8 commit encoding tests) |
| 5 | |
Junio C Hamano | 5be6007 | 2007-07-02 22:52:14 -0700 | [diff] [blame] | 6 | test_description='git rev-list --pretty=format test' |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 7 | |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 8 | GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main |
Johannes Schindelin | 334afbc | 2020-11-18 23:44:19 +0000 | [diff] [blame] | 9 | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME |
| 10 | |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 11 | . ./test-lib.sh |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 12 | . "$TEST_DIRECTORY"/lib-terminal.sh |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 13 | |
| 14 | test_tick |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 15 | # Tested non-UTF-8 encoding |
| 16 | test_encoding="ISO8859-1" |
| 17 | |
Alexey Shumkin | 17cc2ef | 2013-07-05 16:01:48 +0400 | [diff] [blame] | 18 | # String "added" in German |
| 19 | # (translated with Google Translate), |
| 20 | # encoded in UTF-8, used as a commit log message below. |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 21 | added_utf8_part=$(printf "\303\274") |
| 22 | added_utf8_part_iso88591=$(echo "$added_utf8_part" | iconv -f utf-8 -t $test_encoding) |
| 23 | added=$(printf "added (hinzugef${added_utf8_part}gt) foo") |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 24 | added_iso88591=$(echo "$added" | iconv -f utf-8 -t $test_encoding) |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 25 | # same but "changed" |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 26 | changed_utf8_part=$(printf "\303\244") |
| 27 | changed_utf8_part_iso88591=$(echo "$changed_utf8_part" | iconv -f utf-8 -t $test_encoding) |
| 28 | changed=$(printf "changed (ge${changed_utf8_part}ndert) foo") |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 29 | changed_iso88591=$(echo "$changed" | iconv -f utf-8 -t $test_encoding) |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 30 | |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 31 | # Count of char to truncate |
| 32 | # Number is chosen so, that non-ACSII characters |
| 33 | # (see $added_utf8_part and $changed_utf8_part) |
| 34 | # fall into truncated parts of appropriate words both from left and right |
| 35 | truncate_count=20 |
| 36 | |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 37 | test_expect_success 'setup' ' |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 38 | : >foo && |
| 39 | git add foo && |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 40 | git config i18n.commitEncoding $test_encoding && |
Pat Thoyts | e6ce2be | 2013-09-02 15:44:54 +0100 | [diff] [blame] | 41 | echo "$added_iso88591" | git commit -F - && |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 42 | head1=$(git rev-parse --verify HEAD) && |
| 43 | head1_short=$(git rev-parse --verify --short $head1) && |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 44 | head1_short4=$(git rev-parse --verify --short=4 $head1) && |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 45 | tree1=$(git rev-parse --verify HEAD:) && |
| 46 | tree1_short=$(git rev-parse --verify --short $tree1) && |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 47 | echo "$changed" > foo && |
Pat Thoyts | e6ce2be | 2013-09-02 15:44:54 +0100 | [diff] [blame] | 48 | echo "$changed_iso88591" | git commit -a -F - && |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 49 | head2=$(git rev-parse --verify HEAD) && |
| 50 | head2_short=$(git rev-parse --verify --short $head2) && |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 51 | head2_short4=$(git rev-parse --verify --short=4 $head2) && |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 52 | tree2=$(git rev-parse --verify HEAD:) && |
Jeff King | 99094a7 | 2015-03-20 06:07:15 -0400 | [diff] [blame] | 53 | tree2_short=$(git rev-parse --verify --short $tree2) && |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 54 | git config --unset i18n.commitEncoding |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 55 | ' |
| 56 | |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 57 | # usage: test_format [argument...] name format_string [failure] <expected_output |
Junio C Hamano | 2581ad5 | 2012-12-17 17:56:23 -0500 | [diff] [blame] | 58 | test_format () { |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 59 | local args= |
| 60 | while true |
| 61 | do |
| 62 | case "$1" in |
| 63 | --*) |
| 64 | args="$args $1" |
| 65 | shift;; |
| 66 | *) |
| 67 | break;; |
| 68 | esac |
| 69 | done |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 70 | cat >expect.$1 |
Alexey Shumkin | 17cc2ef | 2013-07-05 16:01:48 +0400 | [diff] [blame] | 71 | test_expect_${3:-success} "format $1" " |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 72 | git rev-list $args --pretty=format:'$2' main >output.$1 && |
| 73 | test_cmp expect.$1 output.$1 |
| 74 | " |
| 75 | } |
| 76 | |
| 77 | # usage: test_pretty [argument...] name format_name [failure] <expected_output |
| 78 | test_pretty () { |
| 79 | local args= |
| 80 | while true |
| 81 | do |
| 82 | case "$1" in |
| 83 | --*) |
| 84 | args="$args $1" |
| 85 | shift;; |
| 86 | *) |
| 87 | break;; |
| 88 | esac |
| 89 | done |
| 90 | cat >expect.$1 |
| 91 | test_expect_${3:-success} "pretty $1 (without --no-commit-header)" " |
| 92 | git rev-list $args --pretty='$2' main >output.$1 && |
| 93 | test_cmp expect.$1 output.$1 |
| 94 | " |
| 95 | test_expect_${3:-success} "pretty $1 (with --no-commit-header)" " |
| 96 | git rev-list $args --no-commit-header --pretty='$2' main >output.$1 && |
Alexey Shumkin | 17cc2ef | 2013-07-05 16:01:48 +0400 | [diff] [blame] | 97 | test_cmp expect.$1 output.$1 |
| 98 | " |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 99 | } |
| 100 | |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 101 | # Feed to --format to provide predictable colored sequences. |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 102 | BASIC_COLOR='%Credfoo%Creset' |
| 103 | COLOR='%C(red)foo%C(reset)' |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 104 | AUTO_COLOR='%C(auto,red)foo%C(auto,reset)' |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 105 | ALWAYS_COLOR='%C(always,red)foo%C(always,reset)' |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 106 | has_color () { |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 107 | test_decode_color <"$1" >decoded && |
| 108 | echo "<RED>foo<RESET>" >expect && |
| 109 | test_cmp expect decoded |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 110 | } |
| 111 | |
| 112 | has_no_color () { |
| 113 | echo foo >expect && |
| 114 | test_cmp expect "$1" |
| 115 | } |
| 116 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 117 | test_format percent %%h <<EOF |
| 118 | commit $head2 |
Jeff King | 0a0416a | 2010-01-13 12:35:31 -0500 | [diff] [blame] | 119 | %h |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 120 | commit $head1 |
Jeff King | 0a0416a | 2010-01-13 12:35:31 -0500 | [diff] [blame] | 121 | %h |
| 122 | EOF |
| 123 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 124 | test_format hash %H%n%h <<EOF |
| 125 | commit $head2 |
| 126 | $head2 |
| 127 | $head2_short |
| 128 | commit $head1 |
| 129 | $head1 |
| 130 | $head1_short |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 131 | EOF |
| 132 | |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 133 | test_format --no-commit-header hash-no-header %H%n%h <<EOF |
| 134 | $head2 |
| 135 | $head2_short |
| 136 | $head1 |
| 137 | $head1_short |
| 138 | EOF |
| 139 | |
| 140 | test_format --abbrev-commit --abbrev=0 --no-commit-header hash-no-header-abbrev %H%n%h <<EOF |
| 141 | $head2 |
| 142 | $head2_short4 |
| 143 | $head1 |
| 144 | $head1_short4 |
| 145 | EOF |
| 146 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 147 | test_format tree %T%n%t <<EOF |
| 148 | commit $head2 |
| 149 | $tree2 |
| 150 | $tree2_short |
| 151 | commit $head1 |
| 152 | $tree1 |
| 153 | $tree1_short |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 154 | EOF |
| 155 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 156 | test_format parents %P%n%p <<EOF |
| 157 | commit $head2 |
| 158 | $head1 |
| 159 | $head1_short |
| 160 | commit $head1 |
Junio C Hamano | 542e165 | 2007-03-28 13:33:37 -0700 | [diff] [blame] | 161 | |
| 162 | |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 163 | EOF |
| 164 | |
| 165 | # we don't test relative here |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 166 | test_format author %an%n%ae%n%al%n%ad%n%aD%n%at <<EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 167 | commit $head2 |
Prarit Bhargava | 2ae4944 | 2019-10-24 19:36:15 -0400 | [diff] [blame] | 168 | $GIT_AUTHOR_NAME |
| 169 | $GIT_AUTHOR_EMAIL |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 170 | $TEST_AUTHOR_LOCALNAME |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 171 | Thu Apr 7 15:13:13 2005 -0700 |
| 172 | Thu, 7 Apr 2005 15:13:13 -0700 |
| 173 | 1112911993 |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 174 | commit $head1 |
Prarit Bhargava | 2ae4944 | 2019-10-24 19:36:15 -0400 | [diff] [blame] | 175 | $GIT_AUTHOR_NAME |
| 176 | $GIT_AUTHOR_EMAIL |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 177 | $TEST_AUTHOR_LOCALNAME |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 178 | Thu Apr 7 15:13:13 2005 -0700 |
| 179 | Thu, 7 Apr 2005 15:13:13 -0700 |
| 180 | 1112911993 |
| 181 | EOF |
| 182 | |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 183 | test_format committer %cn%n%ce%n%cl%n%cd%n%cD%n%ct <<EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 184 | commit $head2 |
Prarit Bhargava | 2ae4944 | 2019-10-24 19:36:15 -0400 | [diff] [blame] | 185 | $GIT_COMMITTER_NAME |
| 186 | $GIT_COMMITTER_EMAIL |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 187 | $TEST_COMMITTER_LOCALNAME |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 188 | Thu Apr 7 15:13:13 2005 -0700 |
| 189 | Thu, 7 Apr 2005 15:13:13 -0700 |
| 190 | 1112911993 |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 191 | commit $head1 |
Prarit Bhargava | 2ae4944 | 2019-10-24 19:36:15 -0400 | [diff] [blame] | 192 | $GIT_COMMITTER_NAME |
| 193 | $GIT_COMMITTER_EMAIL |
Prarit Bhargava | d8b8217 | 2019-10-29 08:09:14 -0400 | [diff] [blame] | 194 | $TEST_COMMITTER_LOCALNAME |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 195 | Thu Apr 7 15:13:13 2005 -0700 |
| 196 | Thu, 7 Apr 2005 15:13:13 -0700 |
| 197 | 1112911993 |
| 198 | EOF |
| 199 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 200 | test_format encoding %e <<EOF |
| 201 | commit $head2 |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 202 | $test_encoding |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 203 | commit $head1 |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 204 | $test_encoding |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 205 | EOF |
| 206 | |
Alexey Shumkin | ecaee80 | 2013-06-26 14:19:50 +0400 | [diff] [blame] | 207 | test_format subject %s <<EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 208 | commit $head2 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 209 | $changed |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 210 | commit $head1 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 211 | $added |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 212 | EOF |
| 213 | |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 214 | test_format subject-truncated "%<($truncate_count,trunc)%s" <<EOF |
| 215 | commit $head2 |
| 216 | changed (ge${changed_utf8_part}ndert).. |
| 217 | commit $head1 |
| 218 | added (hinzugef${added_utf8_part}gt.. |
| 219 | EOF |
| 220 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 221 | test_format body %b <<EOF |
| 222 | commit $head2 |
| 223 | commit $head1 |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 224 | EOF |
| 225 | |
Alexey Shumkin | ecaee80 | 2013-06-26 14:19:50 +0400 | [diff] [blame] | 226 | test_format raw-body %B <<EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 227 | commit $head2 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 228 | $changed |
Eli Barzilay | 1367b12 | 2010-03-24 22:51:52 -0400 | [diff] [blame] | 229 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 230 | commit $head1 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 231 | $added |
Eli Barzilay | 1367b12 | 2010-03-24 22:51:52 -0400 | [diff] [blame] | 232 | |
| 233 | EOF |
| 234 | |
brian m. carlson | d1c5ae7 | 2021-07-11 21:55:10 +0000 | [diff] [blame] | 235 | test_format --no-commit-header raw-body-no-header %B <<EOF |
| 236 | $changed |
| 237 | |
| 238 | $added |
| 239 | |
| 240 | EOF |
| 241 | |
| 242 | test_pretty oneline oneline <<EOF |
| 243 | $head2 $changed |
| 244 | $head1 $added |
| 245 | EOF |
| 246 | |
| 247 | test_pretty short short <<EOF |
| 248 | commit $head2 |
| 249 | Author: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL> |
| 250 | |
| 251 | $changed |
| 252 | |
| 253 | commit $head1 |
| 254 | Author: $GIT_AUTHOR_NAME <$GIT_AUTHOR_EMAIL> |
| 255 | |
| 256 | $added |
| 257 | |
| 258 | EOF |
| 259 | |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 260 | test_expect_success 'basic colors' ' |
| 261 | cat >expect <<-EOF && |
| 262 | commit $head2 |
| 263 | <RED>foo<GREEN>bar<BLUE>baz<RESET>xyzzy |
| 264 | EOF |
| 265 | format="%Credfoo%Cgreenbar%Cbluebaz%Cresetxyzzy" && |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 266 | git rev-list --color --format="$format" -1 main >actual.raw && |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 267 | test_decode_color <actual.raw >actual && |
| 268 | test_cmp expect actual |
| 269 | ' |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 270 | |
Issac Trotts | ad6f028 | 2019-01-10 22:30:46 -0800 | [diff] [blame] | 271 | test_expect_success '%S is not a placeholder for rev-list yet' ' |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 272 | git rev-list --format="%S" -1 main | grep "%S" |
Issac Trotts | ad6f028 | 2019-01-10 22:30:46 -0800 | [diff] [blame] | 273 | ' |
| 274 | |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 275 | test_expect_success 'advanced colors' ' |
| 276 | cat >expect <<-EOF && |
| 277 | commit $head2 |
| 278 | <BOLD;RED;BYELLOW>foo<RESET> |
| 279 | EOF |
| 280 | format="%C(red yellow bold)foo%C(reset)" && |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 281 | git rev-list --color --format="$format" -1 main >actual.raw && |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 282 | test_decode_color <actual.raw >actual && |
| 283 | test_cmp expect actual |
| 284 | ' |
Jeff King | c002922 | 2009-01-17 10:38:46 -0500 | [diff] [blame] | 285 | |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 286 | for spec in \ |
| 287 | "%Cred:$BASIC_COLOR" \ |
| 288 | "%C(...):$COLOR" \ |
| 289 | "%C(auto,...):$AUTO_COLOR" |
| 290 | do |
| 291 | desc=${spec%%:*} |
| 292 | color=${spec#*:} |
| 293 | test_expect_success "$desc does not enable color by default" ' |
| 294 | git log --format=$color -1 >actual && |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 295 | has_no_color actual |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 296 | ' |
| 297 | |
Jeff King | 1d4b12f | 2017-10-13 13:23:41 -0400 | [diff] [blame] | 298 | test_expect_success "$desc enables colors for color.diff" ' |
| 299 | git -c color.diff=always log --format=$color -1 >actual && |
| 300 | has_color actual |
| 301 | ' |
| 302 | |
| 303 | test_expect_success "$desc enables colors for color.ui" ' |
| 304 | git -c color.ui=always log --format=$color -1 >actual && |
| 305 | has_color actual |
| 306 | ' |
| 307 | |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 308 | test_expect_success "$desc respects --color" ' |
| 309 | git log --format=$color -1 --color >actual && |
| 310 | has_color actual |
| 311 | ' |
| 312 | |
Jeff King | 1d4b12f | 2017-10-13 13:23:41 -0400 | [diff] [blame] | 313 | test_expect_success "$desc respects --no-color" ' |
| 314 | git -c color.ui=always log --format=$color -1 --no-color >actual && |
| 315 | has_no_color actual |
| 316 | ' |
| 317 | |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 318 | test_expect_success TTY "$desc respects --color=auto (stdout is tty)" ' |
Jeff King | e433749 | 2017-10-03 09:39:34 -0400 | [diff] [blame] | 319 | test_terminal git log --format=$color -1 --color=auto >actual && |
Jeff King | 18fb7ff | 2017-07-13 11:08:46 -0400 | [diff] [blame] | 320 | has_color actual |
| 321 | ' |
| 322 | |
| 323 | test_expect_success "$desc respects --color=auto (stdout not tty)" ' |
| 324 | ( |
| 325 | TERM=vt100 && export TERM && |
| 326 | git log --format=$color -1 --color=auto >actual && |
| 327 | has_no_color actual |
| 328 | ) |
| 329 | ' |
| 330 | done |
| 331 | |
| 332 | test_expect_success '%C(always,...) enables color even without tty' ' |
| 333 | git log --format=$ALWAYS_COLOR -1 >actual && |
| 334 | has_color actual |
Junio C Hamano | 3082517 | 2012-12-17 17:56:49 -0500 | [diff] [blame] | 335 | ' |
| 336 | |
Edward Thomson | b15a3e0 | 2016-05-26 22:46:10 -0500 | [diff] [blame] | 337 | test_expect_success '%C(auto) respects --color' ' |
Jeff King | 097b681 | 2017-07-13 10:58:41 -0400 | [diff] [blame] | 338 | git log --color --format="%C(auto)%H" -1 >actual.raw && |
| 339 | test_decode_color <actual.raw >actual && |
| 340 | echo "<YELLOW>$(git rev-parse HEAD)<RESET>" >expect && |
Edward Thomson | b15a3e0 | 2016-05-26 22:46:10 -0500 | [diff] [blame] | 341 | test_cmp expect actual |
| 342 | ' |
| 343 | |
| 344 | test_expect_success '%C(auto) respects --no-color' ' |
| 345 | git log --no-color --format="%C(auto)%H" -1 >actual && |
| 346 | git rev-parse HEAD >expect && |
| 347 | test_cmp expect actual |
| 348 | ' |
| 349 | |
Jeff King | d75dfb1 | 2017-07-13 11:07:30 -0400 | [diff] [blame] | 350 | test_expect_success 'rev-list %C(auto,...) respects --color' ' |
| 351 | git rev-list --color --format="%C(auto,green)foo%C(auto,reset)" \ |
| 352 | -1 HEAD >actual.raw && |
| 353 | test_decode_color <actual.raw >actual && |
| 354 | cat >expect <<-EOF && |
| 355 | commit $(git rev-parse HEAD) |
| 356 | <GREEN>foo<RESET> |
| 357 | EOF |
| 358 | test_cmp expect actual |
| 359 | ' |
| 360 | |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 361 | iconv -f utf-8 -t $test_encoding > commit-msg <<EOF |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 362 | Test printing of complex bodies |
| 363 | |
| 364 | This commit message is much longer than the others, |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 365 | and it will be encoded in $test_encoding. We should therefore |
| 366 | include an ISO8859 character: ¡bueno! |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 367 | EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 368 | |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 369 | test_expect_success 'setup complex body' ' |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 370 | git config i18n.commitencoding $test_encoding && |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 371 | echo change2 >foo && git commit -a -F commit-msg && |
| 372 | head3=$(git rev-parse --verify HEAD) && |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 373 | head3_short=$(git rev-parse --short $head3) |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 374 | ' |
| 375 | |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 376 | test_format complex-encoding %e <<EOF |
| 377 | commit $head3 |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 378 | $test_encoding |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 379 | commit $head2 |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 380 | $test_encoding |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 381 | commit $head1 |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 382 | $test_encoding |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 383 | EOF |
| 384 | |
Alexey Shumkin | ecaee80 | 2013-06-26 14:19:50 +0400 | [diff] [blame] | 385 | test_format complex-subject %s <<EOF |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 386 | commit $head3 |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 387 | Test printing of complex bodies |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 388 | commit $head2 |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 389 | $changed_iso88591 |
| 390 | commit $head1 |
| 391 | $added_iso88591 |
| 392 | EOF |
| 393 | |
Alexey Shumkin | 7d50987 | 2014-05-21 17:20:07 +0400 | [diff] [blame] | 394 | test_format complex-subject-trunc "%<($truncate_count,trunc)%s" <<EOF |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 395 | commit $head3 |
| 396 | Test printing of c.. |
| 397 | commit $head2 |
| 398 | changed (ge${changed_utf8_part_iso88591}ndert).. |
| 399 | commit $head1 |
| 400 | added (hinzugef${added_utf8_part_iso88591}gt.. |
| 401 | EOF |
| 402 | |
Alexey Shumkin | 7d50987 | 2014-05-21 17:20:07 +0400 | [diff] [blame] | 403 | test_format complex-subject-mtrunc "%<($truncate_count,mtrunc)%s" <<EOF |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 404 | commit $head3 |
| 405 | Test prin..ex bodies |
| 406 | commit $head2 |
| 407 | changed (..dert) foo |
| 408 | commit $head1 |
| 409 | added (hi..f${added_utf8_part_iso88591}gt) foo |
| 410 | EOF |
| 411 | |
Alexey Shumkin | 7d50987 | 2014-05-21 17:20:07 +0400 | [diff] [blame] | 412 | test_format complex-subject-ltrunc "%<($truncate_count,ltrunc)%s" <<EOF |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 413 | commit $head3 |
| 414 | .. of complex bodies |
| 415 | commit $head2 |
| 416 | ..ged (ge${changed_utf8_part_iso88591}ndert) foo |
| 417 | commit $head1 |
| 418 | .. (hinzugef${added_utf8_part_iso88591}gt) foo |
| 419 | EOF |
| 420 | |
Elijah Newren | 2ba31eb | 2020-10-18 00:23:46 +0000 | [diff] [blame] | 421 | test_expect_success 'setup expected messages (for test %b)' ' |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 422 | cat <<-EOF >expected.utf-8 && |
| 423 | commit $head3 |
| 424 | This commit message is much longer than the others, |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 425 | and it will be encoded in $test_encoding. We should therefore |
| 426 | include an ISO8859 character: ¡bueno! |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 427 | |
| 428 | commit $head2 |
| 429 | commit $head1 |
| 430 | EOF |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 431 | iconv -f utf-8 -t $test_encoding expected.utf-8 >expected.ISO8859-1 |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 432 | ' |
| 433 | |
Alexey Shumkin | ee3efaf | 2014-05-21 17:20:04 +0400 | [diff] [blame] | 434 | test_format complex-body %b <expected.ISO8859-1 |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 435 | |
| 436 | # Git uses i18n.commitEncoding if no i18n.logOutputEncoding set |
| 437 | # so unset i18n.commitEncoding to test encoding conversion |
| 438 | git config --unset i18n.commitEncoding |
| 439 | |
| 440 | test_format complex-subject-commitencoding-unset %s <<EOF |
| 441 | commit $head3 |
| 442 | Test printing of complex bodies |
| 443 | commit $head2 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 444 | $changed |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 445 | commit $head1 |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 446 | $added |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 447 | EOF |
| 448 | |
Alexey Shumkin | d928d81 | 2014-05-21 17:20:06 +0400 | [diff] [blame] | 449 | test_format complex-subject-commitencoding-unset-trunc "%<($truncate_count,trunc)%s" <<EOF |
| 450 | commit $head3 |
| 451 | Test printing of c.. |
| 452 | commit $head2 |
| 453 | changed (ge${changed_utf8_part}ndert).. |
| 454 | commit $head1 |
| 455 | added (hinzugef${added_utf8_part}gt.. |
| 456 | EOF |
| 457 | |
| 458 | test_format complex-subject-commitencoding-unset-mtrunc "%<($truncate_count,mtrunc)%s" <<EOF |
| 459 | commit $head3 |
| 460 | Test prin..ex bodies |
| 461 | commit $head2 |
| 462 | changed (..dert) foo |
| 463 | commit $head1 |
| 464 | added (hi..f${added_utf8_part}gt) foo |
| 465 | EOF |
| 466 | |
| 467 | test_format complex-subject-commitencoding-unset-ltrunc "%<($truncate_count,ltrunc)%s" <<EOF |
| 468 | commit $head3 |
| 469 | .. of complex bodies |
| 470 | commit $head2 |
| 471 | ..ged (ge${changed_utf8_part}ndert) foo |
| 472 | commit $head1 |
| 473 | .. (hinzugef${added_utf8_part}gt) foo |
| 474 | EOF |
| 475 | |
Alexey Shumkin | 0fe6df3 | 2013-07-05 16:01:49 +0400 | [diff] [blame] | 476 | test_format complex-body-commitencoding-unset %b <expected.utf-8 |
Jeff King | 03bcaac | 2007-03-28 17:08:36 -0400 | [diff] [blame] | 477 | |
Jeff King | 9130ac9 | 2010-10-07 14:25:43 -0400 | [diff] [blame] | 478 | test_expect_success '%x00 shows NUL' ' |
Alexey Shumkin | 77a6815 | 2013-06-26 14:19:46 +0400 | [diff] [blame] | 479 | echo >expect commit $head3 && |
Jeff King | 9130ac9 | 2010-10-07 14:25:43 -0400 | [diff] [blame] | 480 | echo >>expect fooQbar && |
| 481 | git rev-list -1 --format=foo%x00bar HEAD >actual.nul && |
| 482 | nul_to_q <actual.nul >actual && |
| 483 | test_cmp expect actual |
| 484 | ' |
| 485 | |
Jeff King | d36f867 | 2008-08-28 20:54:59 -0400 | [diff] [blame] | 486 | test_expect_success '%ad respects --date=' ' |
| 487 | echo 2005-04-07 >expect.ad-short && |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 488 | git log -1 --date=short --pretty=tformat:%ad >output.ad-short main && |
Jeff King | d36f867 | 2008-08-28 20:54:59 -0400 | [diff] [blame] | 489 | test_cmp expect.ad-short output.ad-short |
| 490 | ' |
| 491 | |
Junio C Hamano | f7ab5c7 | 2008-01-06 04:21:07 -0800 | [diff] [blame] | 492 | test_expect_success 'empty email' ' |
| 493 | test_tick && |
| 494 | C=$(GIT_AUTHOR_EMAIL= git commit-tree HEAD^{tree} </dev/null) && |
| 495 | A=$(git show --pretty=format:%an,%ae,%ad%n -s $C) && |
Jeff King | 8ddfce7 | 2023-05-08 15:04:57 -0400 | [diff] [blame] | 496 | test "$A" = "$GIT_AUTHOR_NAME,,Thu Apr 7 15:14:13 2005 -0700" |
Junio C Hamano | f7ab5c7 | 2008-01-06 04:21:07 -0800 | [diff] [blame] | 497 | ' |
| 498 | |
Junio C Hamano | 9fa708d | 2009-10-04 23:43:32 -0700 | [diff] [blame] | 499 | test_expect_success 'del LF before empty (1)' ' |
| 500 | git show -s --pretty=format:"%s%n%-b%nThanks%n" HEAD^^ >actual && |
Stefano Lattarini | 3fb0459 | 2012-04-11 13:24:01 +0200 | [diff] [blame] | 501 | test_line_count = 2 actual |
Junio C Hamano | 9fa708d | 2009-10-04 23:43:32 -0700 | [diff] [blame] | 502 | ' |
| 503 | |
| 504 | test_expect_success 'del LF before empty (2)' ' |
| 505 | git show -s --pretty=format:"%s%n%-b%nThanks%n" HEAD >actual && |
Stefano Lattarini | 3fb0459 | 2012-04-11 13:24:01 +0200 | [diff] [blame] | 506 | test_line_count = 6 actual && |
Junio C Hamano | 9fa708d | 2009-10-04 23:43:32 -0700 | [diff] [blame] | 507 | grep "^$" actual |
| 508 | ' |
| 509 | |
| 510 | test_expect_success 'add LF before non-empty (1)' ' |
| 511 | git show -s --pretty=format:"%s%+b%nThanks%n" HEAD^^ >actual && |
Stefano Lattarini | 3fb0459 | 2012-04-11 13:24:01 +0200 | [diff] [blame] | 512 | test_line_count = 2 actual |
Junio C Hamano | 9fa708d | 2009-10-04 23:43:32 -0700 | [diff] [blame] | 513 | ' |
| 514 | |
| 515 | test_expect_success 'add LF before non-empty (2)' ' |
| 516 | git show -s --pretty=format:"%s%+b%nThanks%n" HEAD >actual && |
Stefano Lattarini | 3fb0459 | 2012-04-11 13:24:01 +0200 | [diff] [blame] | 517 | test_line_count = 6 actual && |
Junio C Hamano | 9fa708d | 2009-10-04 23:43:32 -0700 | [diff] [blame] | 518 | grep "^$" actual |
| 519 | ' |
| 520 | |
Michael J Gruber | 7b88176 | 2010-06-14 18:12:29 +0200 | [diff] [blame] | 521 | test_expect_success 'add SP before non-empty (1)' ' |
| 522 | git show -s --pretty=format:"%s% bThanks" HEAD^^ >actual && |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 523 | test $(wc -w <actual) = 3 |
Michael J Gruber | 7b88176 | 2010-06-14 18:12:29 +0200 | [diff] [blame] | 524 | ' |
| 525 | |
| 526 | test_expect_success 'add SP before non-empty (2)' ' |
| 527 | git show -s --pretty=format:"%s% sThanks" HEAD^^ >actual && |
Alexey Shumkin | de6029a | 2013-06-26 14:19:49 +0400 | [diff] [blame] | 528 | test $(wc -w <actual) = 6 |
Michael J Gruber | 7b88176 | 2010-06-14 18:12:29 +0200 | [diff] [blame] | 529 | ' |
| 530 | |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 531 | test_expect_success '--abbrev' ' |
| 532 | echo SHORT SHORT SHORT >expect2 && |
| 533 | echo LONG LONG LONG >expect3 && |
| 534 | git log -1 --format="%h %h %h" HEAD >actual1 && |
| 535 | git log -1 --abbrev=5 --format="%h %h %h" HEAD >actual2 && |
| 536 | git log -1 --abbrev=5 --format="%H %H %H" HEAD >actual3 && |
brian m. carlson | 2ece6ad | 2018-05-13 02:24:15 +0000 | [diff] [blame] | 537 | sed -e "s/$OID_REGEX/LONG/g" -e "s/$_x05/SHORT/g" <actual2 >fuzzy2 && |
| 538 | sed -e "s/$OID_REGEX/LONG/g" -e "s/$_x05/SHORT/g" <actual3 >fuzzy3 && |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 539 | test_cmp expect2 fuzzy2 && |
| 540 | test_cmp expect3 fuzzy3 && |
| 541 | ! test_cmp actual1 actual2 |
| 542 | ' |
| 543 | |
| 544 | test_expect_success '%H is not affected by --abbrev-commit' ' |
brian m. carlson | edf0424 | 2020-02-07 00:52:53 +0000 | [diff] [blame] | 545 | expected=$(($(test_oid hexsz) + 1)) && |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 546 | git log -1 --format=%H --abbrev-commit --abbrev=20 HEAD >actual && |
| 547 | len=$(wc -c <actual) && |
brian m. carlson | edf0424 | 2020-02-07 00:52:53 +0000 | [diff] [blame] | 548 | test $len = $expected |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 549 | ' |
| 550 | |
| 551 | test_expect_success '%h is not affected by --abbrev-commit' ' |
| 552 | git log -1 --format=%h --abbrev-commit --abbrev=20 HEAD >actual && |
| 553 | len=$(wc -c <actual) && |
| 554 | test $len = 21 |
| 555 | ' |
| 556 | |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 557 | test_expect_success '"%h %gD: %gs" is same as git-reflog' ' |
| 558 | git reflog >expect && |
| 559 | git log -g --format="%h %gD: %gs" >actual && |
| 560 | test_cmp expect actual |
| 561 | ' |
| 562 | |
| 563 | test_expect_success '"%h %gD: %gs" is same as git-reflog (with date)' ' |
| 564 | git reflog --date=raw >expect && |
| 565 | git log -g --format="%h %gD: %gs" --date=raw >actual && |
| 566 | test_cmp expect actual |
| 567 | ' |
| 568 | |
Will Palmer | c197702 | 2010-05-03 22:18:57 -0500 | [diff] [blame] | 569 | test_expect_success '"%h %gD: %gs" is same as git-reflog (with --abbrev)' ' |
| 570 | git reflog --abbrev=13 --date=raw >expect && |
| 571 | git log -g --abbrev=13 --format="%h %gD: %gs" --date=raw >actual && |
| 572 | test_cmp expect actual |
| 573 | ' |
| 574 | |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 575 | test_expect_success '%gd shortens ref name' ' |
Johannes Schindelin | 1550bb6 | 2020-11-18 23:44:36 +0000 | [diff] [blame] | 576 | echo "main@{0}" >expect.gd-short && |
| 577 | git log -g -1 --format=%gd refs/heads/main >actual.gd-short && |
Thomas Rast | 8f8f547 | 2009-10-19 17:48:10 +0200 | [diff] [blame] | 578 | test_cmp expect.gd-short actual.gd-short |
| 579 | ' |
| 580 | |
Jeff King | cd1957f | 2011-12-16 06:40:24 -0500 | [diff] [blame] | 581 | test_expect_success 'reflog identity' ' |
Prarit Bhargava | 2ae4944 | 2019-10-24 19:36:15 -0400 | [diff] [blame] | 582 | echo "$GIT_COMMITTER_NAME:$GIT_COMMITTER_EMAIL" >expect && |
Jeff King | cd1957f | 2011-12-16 06:40:24 -0500 | [diff] [blame] | 583 | git log -g -1 --format="%gn:%ge" >actual && |
| 584 | test_cmp expect actual |
| 585 | ' |
| 586 | |
Erik Faye-Lund | 1fb5fdd | 2010-03-21 15:40:16 +0100 | [diff] [blame] | 587 | test_expect_success 'oneline with empty message' ' |
Elijah Newren | 7b6ad97 | 2019-09-04 15:32:37 -0700 | [diff] [blame] | 588 | git commit --allow-empty --cleanup=verbatim -m "$LF" && |
| 589 | git commit --allow-empty --allow-empty-message && |
Matthew Ogilvie | f02dd06 | 2010-04-16 20:29:18 -0600 | [diff] [blame] | 590 | git rev-list --oneline HEAD >test.txt && |
Stefano Lattarini | 3fb0459 | 2012-04-11 13:24:01 +0200 | [diff] [blame] | 591 | test_line_count = 5 test.txt && |
| 592 | git rev-list --oneline --graph HEAD >testg.txt && |
| 593 | test_line_count = 5 testg.txt |
Erik Faye-Lund | 1fb5fdd | 2010-03-21 15:40:16 +0100 | [diff] [blame] | 594 | ' |
| 595 | |
Jeff King | d9955fd | 2012-05-22 02:12:20 -0400 | [diff] [blame] | 596 | test_expect_success 'single-character name is parsed correctly' ' |
| 597 | git commit --author="a <a@example.com>" --allow-empty -m foo && |
| 598 | echo "a <a@example.com>" >expect && |
| 599 | git log -1 --format="%an <%ae>" >actual && |
| 600 | test_cmp expect actual |
| 601 | ' |
| 602 | |
Jeff King | 958b2eb | 2014-06-25 17:42:17 -0400 | [diff] [blame] | 603 | test_expect_success 'unused %G placeholders are passed through' ' |
| 604 | echo "%GX %G" >expect && |
| 605 | git log -1 --format="%GX %G" >actual && |
| 606 | test_cmp expect actual |
| 607 | ' |
| 608 | |
Jeff King | fa21b60 | 2007-03-27 20:08:28 -0400 | [diff] [blame] | 609 | test_done |