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

A couple more duplicate declarations

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 10, 2022, 19:52 UTC
Message-ID
<xmqqwnj7xtb2.fsf_-_@gitster.g>
In-Reply-To
<xmqqfspvz8us.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
>> Thanks for cleaning up the duplicate, looks good to me!
>
> Thanks, both.

This is not urgent at all, given that we are about to enter the pre-release stabilization period and patches that might result from this message would become lower priority, but there are a couple of duplicate declarations, which I'll mention in order to help people to come back to them later.

* trace2_cmd_exit_fl() was added to git-compat-util.h and to
  trace2.h by ee4512ed (trace2: create new combined trace facility,
  2019-02-22).  Logically it belongs to the latter.  Moving
  inclusion of the latter from <cache.h> to <git-compat-util.h>
  might be the lowest-cost fix, but there may be ramifications.
* xdl_emit_diff() is declared in xdiff/xdiffi.h and xdiff/xemit.h; I
  wonder if there is a caller that only includes one but not the
  other header.  As they came from the same upstream-import commit,
  I wouldn't worry too much about it.
Previous: Junio C Hamano
Message 4 of 4 in “cache.h: drop duplicate `ensure_full_index()` declaration”
  1. cache.h: drop duplicate `ensure_full_index()` declarationMartin Ågren, Jan 10, 2022
  2. Victoria DyeJan 10, 2022
  3. Junio C HamanoJan 10, 2022
  4. A couple more duplicate declarationsJunio C Hamano, Jan 10, 2022

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.