diff options
| author | Jiang Xin <worldhello.net@gmail.com> | 2026-04-04 11:53:49 +0800 |
|---|---|---|
| committer | Jiang Xin <worldhello.net@gmail.com> | 2026-04-04 11:57:24 +0800 |
| commit | fc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d (patch) | |
| tree | baec3af2039bd59c01e049f3bd9e10e233d44a1d /string-list.h | |
| parent | 82747b07cc0f7d6fd8237633c1eb533050efba3d (diff) | |
| parent | 8de2f1b07a8053d7f1aad70dc1131d6afcf5a28a (diff) | |
| download | git-fc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d.tar.gz git-fc2a6741f71c71ddc7e1cc71c8f6289fcda2ff2d.zip | |
Merge branch 'master' of https://github.com/git/git
Upstream adds 18 new translatable messages.
* 'master' of https://github.com/git/git: (41 commits)
A bit more on top of 2.54-rc0
...
Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
Diffstat (limited to 'string-list.h')
| -rw-r--r-- | string-list.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/string-list.h b/string-list.h index 3ad862a187..b86ee7c099 100644 --- a/string-list.h +++ b/string-list.h @@ -266,6 +266,14 @@ struct string_list_item *unsorted_string_list_lookup(struct string_list *list, void unsorted_string_list_delete_item(struct string_list *list, int i, int free_util); /** + * Remove the first item matching `str` from an unsorted string_list. + * No-op if `str` is not found. If `free_util` is non-zero, the `util` + * pointer of the removed item is freed before deletion. + */ +void unsorted_string_list_remove(struct string_list *list, const char *str, + int free_util); + +/** * Split string into substrings on characters in `delim` and append the * substrings to `list`. The input string is not modified. * list->strdup_strings must be set, as new memory needs to be |
