Commit c2e7ae1
committed
commit.go: parse whitespace-only lines during continuations
When parsing an extra header that is continued over multiple lines, an
earlier check on the length of whitespace-separated fields caused the
loop to terminate early, dropping continuation lines that consist only
of whitespace.
Tweak the logic slightly in order to capture these, and allow us to
successfully round-trip commit parsing.1 parent 930b3ff commit c2e7ae1
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
0 commit comments