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

Re: [PATCH 2/5] pack-bitmap: load writer config from repository parameter

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 17, 2024, 07:33 UTC
Message-ID
<CAPig+cRgJkXxESSL4h+LO5FKcxKf6pt5VBWpjfUAZrrB5b0Kww@mail.gmail.com>
In-Reply-To
<20240817072653.GB1535915@coredump.intra.peff.net>
On Sat, Aug 17, 2024 at 3:27 AM Jeff King <peff@peff.net> wrote:
> In bitmap_writer_init(), we take a repository parameter but ever look at
s/ever/never/
Show 10 quoted lines
> it. Most of the initialization here is independent of the repository,
> but we do load some config. So let's pass the repo we get down to
> load_pseudo_merges_from_config(), which in turn can use repo_config(),
> rather than depending on the_repository via git_config().
>
> The outcome is the same, since all callers pass in the_repository
> anyway. But it takes us a step closer to getting rid of the global, and
> as a bonus it silences an unused parameter warning.
>
> Signed-off-by: Jeff King <peff@peff.net>
Previous: Jeff KingNext: Jeff King
Message 4 of 7 in “dropping some more unused parameters”
  1. 0/5 dropping some more unused parametersJeff King, Aug 17, 2024
  2. 1/5 refs: drop some unused parameters from create_symref_lock()Jeff King, Aug 17, 2024
  3. 2/5 pack-bitmap: load writer config from repository parameterJeff King, Aug 17, 2024
  4. Eric SunshineAug 17, 2024
  5. 3/5 pack-bitmap: drop unused parameters from select_pseudo_merges()Jeff King, Aug 17, 2024
  6. 4/5 ref-filter: drop unused parameters from email_atom_option_parser()Jeff King, Aug 17, 2024
  7. 5/5 diff-lib: drop unused index argument from get_stat_data()Jeff King, Aug 17, 2024

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.