]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/object-counting'
authorJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2026 19:58:04 +0000 (12:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2026 19:58:05 +0000 (12:58 -0700)
The logic to count objects has been cleaned up.

* ps/object-counting:
  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 
builtin/gc.c
builtin/multi-pack-index.c
builtin/submodule--helper.c
object-file.c
repository.c

diff --cc builtin/gc.c
Simple merge
Simple merge
Simple merge
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"