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

Re: [PATCH 2/2] fast-export: refactor get_tags_and_duplicates()

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 3, 2013, 20:17 UTC
Message-ID
<xmqq38plr76b.fsf@gitster.dls.corp.google.com>
In-Reply-To
<xmqqsixlr8p2.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 11 quoted lines
> Felipe Contreras <felipe.contreras@gmail.com> writes:
>
>> Split into a separate helper function get_commit() so that the part that
>> finds the relevant commit, and the part that does something with it
>> (handle tag object, etc.) are in different places.
>>
>> No functional changes.
>
> Actually, the old code used to use commit unchecked if e->item->type
> said it is OBJ_COMMIT but e->item was somehow NULL.  The new code
> checks ...

Nah, I am an idiot. We will segfault where we check e->item->type before reaching that far down the code either way, so this is really a no-op but makes it easier to fix (if we wanted to---I do not think it matters that much).

Previous: Junio C Hamano
Message 5 of 5 in “fast-export: simplification”
  1. 0/2 fast-export: simplificationFelipe Contreras, Sep 1, 2013
  2. 1/2 fast-export: make extra_refs globalFelipe Contreras, Sep 1, 2013
  3. 2/2 fast-export: refactor get_tags_and_duplicates()Felipe Contreras, Sep 1, 2013
  4. Junio C HamanoSep 3, 2013
  5. Junio C HamanoSep 3, 2013

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.