git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/10] removing nth_packed_object_sha1()
@ 2020-02-24  4:26 Jeff King
  2020-02-24  4:27 ` [PATCH 01/10] nth_packed_object_oid(): use customary integer return Jeff King
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Jeff King @ 2020-02-24  4:26 UTC (permalink / raw)
  To: git; +Cc: brian m. carlson

This series gets rid of nth_packed_object_sha1(), converting its
remaining callers to nth_packed_object_oid(). The latter provides better
type-safety in general, and it also allowed me to clean up some tricky
bits of the pack-verification code (patch 7 below).

This was inspired by brian's work in:

 https://lore.kernel.org/git/20200222201749.937983-2-sandals@crustytoothpaste.net/

but I decide not to base it on that series. It's semantically
independent, and with the exception of one line, textually independent
(patch 4 here touches a different parameter in the same call as the
patch linked above). So I think it's easier to handle them independently
and just resolve the trivial conflict.

  [01/10]: nth_packed_object_oid(): use customary integer return
  [02/10]: pack-objects: read delta base oid into object_id struct
  [03/10]: pack-objects: convert oe_set_delta_ext() to use object_id
  [04/10]: pack-objects: use object_id struct in pack-reuse code
  [05/10]: pack-bitmap: use object_id when loading on-disk bitmaps
  [06/10]: pack-check: convert "internal error" die to a BUG()
  [07/10]: pack-check: push oid lookup into loop
  [08/10]: packed_object_info(): use object_id for returning delta base
  [09/10]: packed_object_info(): use object_id internally for delta base
  [10/10]: packfile: drop nth_packed_object_sha1()

 builtin/cat-file.c     |  2 +-
 builtin/pack-objects.c | 48 +++++++++++++++--------------
 midx.c                 |  2 +-
 object-store.h         |  2 +-
 pack-bitmap.c          | 16 +++++-----
 pack-check.c           | 22 ++++++--------
 pack-objects.c         |  4 +--
 pack-objects.h         |  2 +-
 packfile.c             | 69 ++++++++++++++++++------------------------
 packfile.h             | 15 +++------
 ref-filter.c           |  4 +--
 sha1-file.c            |  8 ++---
 sha1-name.c            | 13 ++++----
 13 files changed, 94 insertions(+), 113 deletions(-)

-Peff

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-02-25  0:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24  4:26 [PATCH 0/10] removing nth_packed_object_sha1() Jeff King
2020-02-24  4:27 ` [PATCH 01/10] nth_packed_object_oid(): use customary integer return Jeff King
2020-02-24 18:23   ` Jeff King
2020-02-24  4:29 ` [PATCH 02/10] pack-objects: read delta base oid into object_id struct Jeff King
2020-02-25  0:19   ` brian m. carlson
2020-02-24  4:30 ` [PATCH 03/10] pack-objects: convert oe_set_delta_ext() to use object_id Jeff King
2020-02-24  4:31 ` [PATCH 04/10] pack-objects: use object_id struct in pack-reuse code Jeff King
2020-02-24  4:32 ` [PATCH 05/10] pack-bitmap: use object_id when loading on-disk bitmaps Jeff King
2020-02-24  4:33 ` [PATCH 06/10] pack-check: convert "internal error" die to a BUG() Jeff King
2020-02-24  4:36 ` [PATCH 07/10] pack-check: push oid lookup into loop Jeff King
2020-02-24  4:36 ` [PATCH 08/10] packed_object_info(): use object_id for returning delta base Jeff King
2020-02-24  4:37 ` [PATCH 09/10] packed_object_info(): use object_id internally for " Jeff King
2020-02-24  4:37 ` [PATCH 10/10] packfile: drop nth_packed_object_sha1() Jeff King
2020-02-25  0:33 ` [PATCH 0/10] removing nth_packed_object_sha1() brian m. carlson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).