Commit 68a746e
promisor-remote: use string_list_split() in mark_remotes_as_accepted()
Previous commits replaced some strbuf_split*() calls with calls to
string_list_split*() in "promisor-remote.c".
For consistency, let's also replace the strbuf_split_str() call in
mark_remotes_as_accepted() with a call to string_list_split(), as we
don't need the splitted strings to be managed by a `struct strbuf`.
Using the lighter-weight `string_list` API is enough for our needs.
While at it let's remove a useless call to `strbuf_strip_suffix()`.
Signed-off-by: Christian Couder <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent c213820 commit 68a746e
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
772 | | - | |
| 772 | + | |
| 773 | + | |
773 | 774 | | |
774 | | - | |
775 | | - | |
776 | | - | |
| 775 | + | |
777 | 776 | | |
778 | | - | |
779 | | - | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
780 | 780 | | |
781 | | - | |
782 | 781 | | |
783 | 782 | | |
784 | 783 | | |
| |||
788 | 787 | | |
789 | 788 | | |
790 | 789 | | |
791 | | - | |
| 790 | + | |
792 | 791 | | |
0 commit comments