Commit 252f2ee
committed
parse: implement and use
The patch parsing code has multiple recurring patterns where we want to
parse an actual number. Create a new function `git_parse_advance_digit`
and use it to avoid code duplication.git_parse_advance_digit
1 parent 65dcb64 commit 252f2ee
3 files changed
Lines changed: 25 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
| 105 | + | |
108 | 106 | | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 110 | | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
119 | 114 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 115 | + | |
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
| |||
258 | 251 | | |
259 | 252 | | |
260 | 253 | | |
261 | | - | |
262 | | - | |
| 254 | + | |
263 | 255 | | |
264 | | - | |
265 | | - | |
| 256 | + | |
266 | 257 | | |
267 | 258 | | |
268 | | - | |
269 | | - | |
270 | 259 | | |
271 | 260 | | |
272 | 261 | | |
273 | | - | |
| 262 | + | |
274 | 263 | | |
275 | 264 | | |
276 | 265 | | |
| |||
457 | 446 | | |
458 | 447 | | |
459 | 448 | | |
460 | | - | |
| 449 | + | |
461 | 450 | | |
462 | 451 | | |
463 | 452 | | |
| |||
687 | 676 | | |
688 | 677 | | |
689 | 678 | | |
690 | | - | |
| 679 | + | |
| 680 | + | |
691 | 681 | | |
692 | 682 | | |
693 | 683 | | |
| |||
0 commit comments