]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ds/name-hash-tweaks'
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Feb 2025 18:08:51 +0000 (10:08 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Feb 2025 18:08:51 +0000 (10:08 -0800)
"git pack-objects" and its wrapper "git repack" learned an option
to use an alternative path-hash function to improve delta-base
selection to produce a packfile with deeper history than window
size.

* ds/name-hash-tweaks:
  pack-objects: prevent name hash version change
  test-tool: add helper for name-hash values
  p5313: add size comparison test
  pack-objects: add GIT_TEST_NAME_HASH_VERSION
  repack: add --name-hash-version option
  pack-objects: add --name-hash-version option
  pack-objects: create new name-hash function version

16 files changed:
1  2 
Makefile
builtin/pack-objects.c
builtin/repack.c
pack-objects.h
t/README
t/helper/meson.build
t/helper/test-tool.c
t/helper/test-tool.h
t/t5300-pack-object.sh
t/t5310-pack-bitmaps.sh
t/t5333-pseudo-merge-bitmaps.sh
t/t5510-fetch.sh
t/t6020-bundle-misc.sh
t/t7406-submodule-update.sh
t/t7700-repack.sh
t/test-lib-functions.sh

diff --cc Makefile
Simple merge
Simple merge
Simple merge
diff --cc pack-objects.h
Simple merge
diff --cc t/README
Simple merge
index f502d1aaa3651d2ac7bdc40f259f96b939d34cb3,0000000000000000000000000000000000000000..1d6154ce9756db17bc9f69bc3cd71a32b93857c5
mode 100644,000000..100644
--- /dev/null
@@@ -1,92 -1,0 +1,93 @@@
 +test_tool_sources = [
 +  '../unit-tests/test-lib.c',
 +  'test-advise.c',
 +  'test-bitmap.c',
 +  'test-bloom.c',
 +  'test-bundle-uri.c',
 +  'test-cache-tree.c',
 +  'test-chmtime.c',
 +  'test-config.c',
 +  'test-crontab.c',
 +  'test-csprng.c',
 +  'test-date.c',
 +  'test-delete-gpgsig.c',
 +  'test-delta.c',
 +  'test-dir-iterator.c',
 +  'test-drop-caches.c',
 +  'test-dump-cache-tree.c',
 +  'test-dump-fsmonitor.c',
 +  'test-dump-split-index.c',
 +  'test-dump-untracked-cache.c',
 +  'test-env-helper.c',
 +  'test-example-tap.c',
 +  'test-find-pack.c',
 +  'test-fsmonitor-client.c',
 +  'test-genrandom.c',
 +  'test-genzeros.c',
 +  'test-getcwd.c',
 +  'test-hash-speed.c',
 +  'test-hash.c',
 +  'test-hashmap.c',
 +  'test-hexdump.c',
 +  'test-json-writer.c',
 +  'test-lazy-init-name-hash.c',
 +  'test-match-trees.c',
 +  'test-mergesort.c',
 +  'test-mktemp.c',
++  'test-name-hash.c',
 +  'test-online-cpus.c',
 +  'test-pack-mtimes.c',
 +  'test-parse-options.c',
 +  'test-parse-pathspec-file.c',
 +  'test-partial-clone.c',
 +  'test-path-utils.c',
 +  'test-path-walk.c',
 +  'test-pcre2-config.c',
 +  'test-pkt-line.c',
 +  'test-proc-receive.c',
 +  'test-progress.c',
 +  'test-reach.c',
 +  'test-read-cache.c',
 +  'test-read-graph.c',
 +  'test-read-midx.c',
 +  'test-ref-store.c',
 +  'test-reftable.c',
 +  'test-regex.c',
 +  'test-repository.c',
 +  'test-revision-walking.c',
 +  'test-rot13-filter.c',
 +  'test-run-command.c',
 +  'test-scrap-cache-tree.c',
 +  'test-serve-v2.c',
 +  'test-sha1.c',
 +  'test-sha256.c',
 +  'test-sigchain.c',
 +  'test-simple-ipc.c',
 +  'test-string-list.c',
 +  'test-submodule-config.c',
 +  'test-submodule-nested-repo-config.c',
 +  'test-submodule.c',
 +  'test-subprocess.c',
 +  'test-tool.c',
 +  'test-trace2.c',
 +  'test-truncate.c',
 +  'test-userdiff.c',
 +  'test-wildmatch.c',
 +  'test-windows-named-pipe.c',
 +  'test-write-cache.c',
 +  'test-xml-encode.c',
 +]
 +
 +test_tool = executable('test-tool',
 +  sources: test_tool_sources,
 +  dependencies: [libgit, common_main],
 +)
 +bin_wrappers += test_tool
 +test_dependencies += test_tool
 +
 +test_fake_ssh = executable('test-fake-ssh',
 +  sources: 'test-fake-ssh.c',
 +  dependencies: [libgit, common_main],
 +)
 +bin_wrappers += test_fake_ssh
 +test_dependencies += test_fake_ssh
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge