git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/6] Make the string_list API consistent

From
Julian Phillips <julian@quantumfyre.co.uk>
Date
Apr 6, 2010, 01:11 UTC
Message-ID
<20100406011106.71279.92681.julian@quantumfyre.co.uk>

Currently most, but not all, string_list functions take the list as the first argument. This series changes the remaining functions to also take the string_list as the first argument which should make it easier to use the API.

The extensive use of string_lists does make this series both a bit large and a bit fragile for an API clean-up though. Perhaps making it more trouble than it's worth?

BTW: The basis for this series was the tip of pu at the time (f5e0e0a7), there
didn't seem much point in trying to do it for master or next ...
Julian Phillips (6):
  string_list: Fix argument order for print_string_list
  string_list: Fix argument order for for_each_string_list
  string_list: Fix argument order for string_list_insert
  string_list: Fix argument order for string_list_insert_at_index
  string_list: Fix argument order for string_list_lookup
  string_list: Fix argument order for string_list_append
 Documentation/technical/api-string-list.txt |    4 +-
 builtin/apply.c                             |   10 ++--
 builtin/commit.c                            |    2 +-
 builtin/fast-export.c                       |    4 +-
 builtin/fetch.c                             |   18 ++++----
 builtin/fmt-merge-msg.c                     |   18 ++++----
 builtin/grep.c                              |    6 +-
 builtin/log.c                               |   20 ++++----
 builtin/ls-files.c                          |    2 +-
 builtin/mailsplit.c                         |    2 +-
 builtin/mv.c                                |    2 +-
 builtin/remote.c                            |   68 +++++++++++++-------------
 builtin/rerere.c                            |    2 +-
 builtin/shortlog.c                          |    4 +-
 builtin/show-ref.c                          |    2 +-
 diff-no-index.c                             |    2 +-
 http-backend.c                              |    6 +-
 mailmap.c                                   |    8 ++--
 merge-recursive.c                           |   24 +++++-----
 notes.c                                     |   12 ++--
 reflog-walk.c                               |    4 +-
 remote.c                                    |    6 +-
 rerere.c                                    |   10 ++--
 resolve-undo.c                              |    8 ++--
 revision.c                                  |    4 +-
 string-list.c                               |   18 ++++----
 string-list.h                               |   16 +++---
 transport-helper.c                          |    4 +-
 wt-status.c                                 |    8 ++--
 29 files changed, 147 insertions(+), 147 deletions(-)
Next: Julian Phillips
Message 1 of 7 in “Make the string_list API consistent”
  1. 0/6 Make the string_list API consistentJulian Phillips, Apr 6, 2010
  2. 1/6 string_list: Fix argument order for print_string_listJulian Phillips, Apr 6, 2010
  3. 2/6 string_list: Fix argument order for for_each_string_listJulian Phillips, Apr 6, 2010
  4. 3/6 string_list: Fix argument order for string_list_insertJulian Phillips, Apr 6, 2010
  5. 4/6 string_list: Fix argument order for string_list_insert_at_indexJulian Phillips, Apr 6, 2010
  6. 5/6 string_list: Fix argument order for string_list_lookupJulian Phillips, Apr 6, 2010
  7. 6/6 string_list: Fix argument order for string_list_appendJulian Phillips, Apr 6, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.