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

ab/object-file-api-updates (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 24, 2022, 09:18 UTC
Message-ID
<220224.867d9kaabe.gmgdl@evledraar.gmail.com>
In-Reply-To
<xmqq1qztortk.fsf@gitster.g>
On Wed, Feb 23 2022, Junio C Hamano wrote:
Show 15 quoted lines
> * ab/object-file-api-updates (2022-02-04) 11 commits
>  - object-file API: pass an enum to read_object_with_reference()
>  - object-file.c: add a literal version of write_object_file_prepare()
>  - object-file API: have hash_object_file() take "enum object_type"
>  - object API: rename hash_object_file_literally() to write_*()
>  - object-file API: split up and simplify check_object_signature()
>  - object API: make check_object_signature() oideq()-like, move docs
>  - object API: correct "buf" v.s. "map" mismatch in *.c and *.h
>  - object-file API: have write_object_file() take "enum object_type"
>  - object-file API: add a format_object_header() function
>  - object-file API: return "void", not "int" from hash_object_file()
>  - object-file.c: split up declaration of unrelated variables
>
>  Object-file API shuffling.
>  source: <cover-v2-00.11-00000000000-20220204T135005Z-avarab@gmail.com>

There's an outstanding v3 of this that hasn't been picked up & addresses earlier feedback of yours[1].

I think with that v3 this should be ready to advance.

Jiang Xin had feedback in [2] about avoiding some casts by having the added functions take a "void *" insted of a "char *", which as I replied to I think we'd like to not do, and is consistent with how we tend to handle those casting issues in existing code.

1. https://lore.kernel.org/git/cover-v3-00.12-00000000000-20220204T234435Z-avarab@gmail.com/
2. https://lore.kernel.org/git/20220217045943.30223-1-worldhello.net@gmail.com/
Previous: Ævar Arnfjörð BjarmasonNext: Glen Choo
Message 5 of 8 in “What's cooking in git.git (Feb 2022, #06; Wed, 23)”
  1. Junio C HamanoFeb 24, 2022
  2. ab/commit-plug-leaks + ab/diff-free-more (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  3. Junio C HamanoFeb 24, 2022
  4. ab/c99 + ab/hook-tests (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  5. ab/object-file-api-updates (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))Ævar Arnfjörð Bjarmason, Feb 24, 2022
  6. ar/submodule-update (wa Re: What's cooking in git.git (Feb 2022, #06; Wed, 23))Glen Choo, Feb 24, 2022
  7. Junio C HamanoFeb 24, 2022
  8. jc/cat-file-batch-commands (was: What's cooking in git.git (Feb 2022, #06; Wed, 23))John Cai, Feb 24, 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.