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

Re: [PATCH 2/2] pack-objects: rename the field "type" to "real_type"

From
Jeff King <peff@peff.net>
Date
Jul 8, 2015, 14:11 UTC
Message-ID
<20150708141110.GA5555@peff.net>
In-Reply-To
<CACsJy8B0OCu3-TKVztj+wCmtqXdeh6iNK5ir4Xi2BXWW14wdOQ@mail.gmail.com>
On Wed, Jul 08, 2015 at 08:57:35PM +0700, Duy Nguyen wrote:
Show 11 quoted lines
> > The definition of in_pack_type says:
> >
> >>       enum object_type in_pack_type;  /* could be delta */
> >
> > so now I am confused about what exactly "type" (and now "real_type")
> > means.
> 
> I think we just overload "type" with "this delta is detected reusable
> already" in write_object(). It only means 'real type in the output
> pack' for canonical types. For generated deltas, we already know if
> it's ref-delta or ofs-delta, we don't rely on real_type
Ah. I think I'd be inclined to just leave it as "type" then.
-Peff
Previous: Duy NguyenNext: Junio C Hamano
Message 16 of 17 in “nd/slim-index-pack-memory-usage update”
  1. 0/2 nd/slim-index-pack-memory-usage updateNguyễn Thái Ngọc Duy, Apr 18, 2015
  2. 1/2 index-pack: reduce object_entry size to save memoryNguyễn Thái Ngọc Duy, Apr 18, 2015
  3. 2/2 index-pack: kill union delta_base to save memoryNguyễn Thái Ngọc Duy, Apr 18, 2015
  4. Junio C HamanoJul 3, 2015
  5. Duy NguyenJul 3, 2015
  6. index-pack: fix overallocation of sorted_by_pos arrayJunio C Hamano, Jul 4, 2015
  7. index-pack: fix allocation of sorted_by_pos arrayJunio C Hamano, Jul 4, 2015
  8. Junio C HamanoJul 6, 2015
  9. Duy NguyenJul 7, 2015
  10. Junio C HamanoJul 7, 2015
  11. Jeff KingJul 7, 2015
  12. 1/2 index-pack: rename the field "type" to "in_pack_type"Nguyễn Thái Ngọc Duy, Jul 8, 2015
  13. 2/2 pack-objects: rename the field "type" to "real_type"Nguyễn Thái Ngọc Duy, Jul 8, 2015
  14. Jeff KingJul 8, 2015
  15. Duy NguyenJul 8, 2015
  16. Jeff KingJul 8, 2015
  17. Junio C HamanoJul 4, 2015

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.