Commit 147972b
commit.c: use skip_prefix() instead of starts_with()
In record_author_date() & parse_gpg_output(), the callers of
starts_with() not just want to know if the string starts with the
prefix, but also can benefit from knowing the string that follows
the prefix.
By using skip_prefix(), we can do both at the same time.
Helped-by: Max Horn <[email protected]>
Helped-by: Junio C Hamano <[email protected]>
Helped-by: Michael Haggerty <[email protected]>
Signed-off-by: Tanay Abhra <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 5f95c9f commit 147972b
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
| 551 | + | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
| 569 | + | |
| 570 | + | |
570 | 571 | | |
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | | - | |
576 | | - | |
| 576 | + | |
577 | 577 | | |
578 | 578 | | |
579 | 579 | | |
| |||
1193 | 1193 | | |
1194 | 1194 | | |
1195 | 1195 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
| 1196 | + | |
| 1197 | + | |
1200 | 1198 | | |
1201 | 1199 | | |
1202 | 1200 | | |
| |||
0 commit comments