]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/object-counting' into ps/odb-generic-object-name-handling
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 20:16:09 +0000 (13:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2026 20:16:09 +0000 (13:16 -0700)
* ps/object-counting:
  object-file: fix sparse 'plain integer as NULL pointer' error
  odb: introduce generic object counting
  odb/source: introduce generic object counting
  object-file: generalize counting objects
  object-file: extract logic to approximate object count
  packfile: extract logic to count number of objects
  odb: stop including "odb/source.h"

1  2 
object-file.c
repository.c

diff --cc object-file.c
Simple merge
diff --cc repository.c
index 0b8f7ec20089e0c720affdf2913429bb8c0e14b4,05c26bdbc3bc08704bdc05705cb93c9a50ddbcc8..9e5537f53961ed3ace4135be10435b7054c12916
@@@ -1,10 -1,9 +1,11 @@@
  #include "git-compat-util.h"
  #include "abspath.h"
  #include "repository.h"
 +#include "hook.h"
  #include "odb.h"
+ #include "odb/source.h"
  #include "config.h"
 +#include "gettext.h"
  #include "object.h"
  #include "lockfile.h"
  #include "path.h"