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

[PATCH v3 00/44] SHA-256 part 2/3: protocol functionality

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jun 19, 2020, 17:55 UTC
Message-ID
<20200619175601.569856-1-sandals@crustytoothpaste.net>
In-Reply-To
<20200513005424.81369-1-sandals@crustytoothpaste.net>

This is part 2 of 3 of the SHA-256 work. This series adds all of the protocol logic to work with SHA-256 repositories.

v3 fixes a bug in patch 34 which prevented cloning an empty repository with the dumb HTTP protocol. We look up the hash algorithm by length of the data in the info/refs file and if we have no refs, we have no entries.

Previously, we just failed and complained, which isn't really helpful, nor is it backward compatible. So now we use whatever the default is for the current repository. That means we honor GIT_DEFAULT_HASH or git clone -c, and default to SHA-1 otherwise. Users are encouraged to switch to the smart protocol if they need to distinguish the remote side's hash algorithm when the repository is empty.

There are tests for the default hash behavior, but not for git clone -c, because the extensions.objectformat option doesn't exist yet. I have tested that it does indeed work, though.

Otherwise, this series is the same as v2 except for a rebase (for my convenience and Junio's).

Changes from v2:
* Rebase onto master.
* Fix cloning an empty repository with the dumb HTTP protocol.
Changes from v1:
* Fix spurious line additions and deletions.
* Rename len to linelen for easier understanding.
* Move the documentation comment for xstrncmpz to the header.
* Drop a useless variable (found).
* Update several commit messages to better explain things as suggested
  by Junio and Martin.
* Name the parameters for parse_feature_value for better documentation.
* Reduce the scope of variables when possible.
* Add explicit handling for missing object-format capabilities.
* Rename all new options to --object-format.
* Use oidcpy where possible.
* Test more failure cases.
* Have index-pack fail if --stdin and --object-format are both
  specified.
* Move and simplify t5704.
* Other miscellaneous cleanups to respond to review feedback.
Range-diff below.
brian m. carlson (44):
  t1050: match object ID paths in a hash-insensitive way
  Documentation: document v1 protocol object-format capability
  connect: have ref processing code take struct packet_reader
  wrapper: add function to compare strings with different NUL
    termination
  remote: advertise the object-format capability on the server side
  connect: add function to parse multiple v1 capability values
  connect: add function to fetch value of a v2 server capability
  pkt-line: add a member for hash algorithm
  transport: add a hash algorithm member
  connect: add function to detect supported v1 hash functions
  send-pack: detect when the server doesn't support our hash
  connect: make parse_feature_value extern
  fetch-pack: detect when the server doesn't support our hash
  connect: detect algorithm when fetching refs
  builtin/receive-pack: detect when the server doesn't support our hash
  docs: update remote helper docs for object-format extensions
  transport-helper: implement object-format extensions
  remote-curl: implement object-format extensions
  builtin/clone: initialize hash algorithm properly
  t5562: pass object-format in synthesized test data
  fetch-pack: parse and advertise the object-format capability
  setup: set the_repository's hash algo when checking format
  t3200: mark assertion with SHA1 prerequisite
  packfile: compute and use the index CRC offset
  t5302: modernize test formatting
  builtin/show-index: provide options to determine hash algo
  t1302: expect repo format version 1 for SHA-256
  Documentation/technical: document object-format for protocol v2
  connect: pass full packet reader when parsing v2 refs
  connect: parse v2 refs with correct hash algorithm
  serve: advertise object-format capability for protocol v2
  t5500: make hash independent
  builtin/ls-remote: initialize repository based on fetch
  remote-curl: detect algorithm for dumb HTTP by size
  builtin/index-pack: add option to specify hash algorithm
  t1050: pass algorithm to index-pack when outside repo
  remote-curl: avoid truncating refs with ls-remote
  t/helper: initialize the repository for test-sha1-array
  t5702: offer an object-format capability in the test
  t5703: use object-format serve option
  t5704: send object-format capability with SHA-256
  t5300: pass --object-format to git index-pack
  bundle: detect hash algorithm when reading refs
  remote-testgit: adapt for object-format
 Documentation/git-index-pack.txt              |   8 +
 Documentation/git-show-index.txt              |  11 +-
 Documentation/gitremote-helpers.txt           |  33 +-
 .../technical/protocol-capabilities.txt       |  15 +
 Documentation/technical/protocol-v2.txt       |   9 +
 builtin/clone.c                               |   9 +
 builtin/index-pack.c                          |  14 +-
 builtin/ls-remote.c                           |   4 +
 builtin/receive-pack.c                        |  10 +
 builtin/show-index.c                          |  29 +-
 bundle.c                                      |  22 +-
 bundle.h                                      |   1 +
 connect.c                                     | 138 +++++--
 connect.h                                     |   3 +
 fetch-pack.c                                  |  14 +
 git-compat-util.h                             |   6 +
 git.c                                         |   2 +-
 object-store.h                                |   1 +
 packfile.c                                    |   1 +
 pkt-line.c                                    |   1 +
 pkt-line.h                                    |   3 +
 remote-curl.c                                 |  46 ++-
 send-pack.c                                   |   6 +
 serve.c                                       |  27 ++
 setup.c                                       |   1 +
 t/helper/test-oid-array.c                     |   3 +
 t/t1050-large.sh                              |   6 +-
 t/t1302-repo-version.sh                       |   6 +-
 t/t3200-branch.sh                             |   2 +-
 t/t5300-pack-object.sh                        |   9 +-
 t/t5302-pack-index.sh                         | 360 +++++++++---------
 t/t5500-fetch-pack.sh                         |   5 +-
 t/t5550-http-fetch-dumb.sh                    |  18 +
 t/t5562-http-backend-content-length.sh        |   5 +-
 t/t5701-git-serve.sh                          |  25 ++
 t/t5702-protocol-v2.sh                        |   2 +
 t/t5703-upload-pack-ref-in-want.sh            |  19 +-
 t/t5704-protocol-violations.sh                |   2 +
 t/t5801/git-remote-testgit                    |   6 +
 t/test-lib.sh                                 |   1 +
 transport-helper.c                            |  24 +-
 transport.c                                   |  18 +-
 transport.h                                   |   8 +
 upload-pack.c                                 |   3 +-
 wrapper.c                                     |   8 +
 45 files changed, 696 insertions(+), 248 deletions(-)
Range-diff against v2:
 1:  5878fe6a98 =  1:  3504602e31 t1050: match object ID paths in a hash-insensitive way
 2:  402864eaa3 =  2:  150ccddb98 Documentation: document v1 protocol object-format capability
 3:  d124692e2f =  3:  b86ec9fffe connect: have ref processing code take struct packet_reader
 4:  cce29662b4 =  4:  f048e638e5 wrapper: add function to compare strings with different NUL termination
 5:  3b207e304b !  5:  99261e8221 remote: advertise the object-format capability on the server side
    @@ upload-pack.c
     @@ upload-pack.c: static int send_ref(const char *refname, const struct object_id *oid,
      		struct strbuf symref_info = STRBUF_INIT;
      
    - 		format_symref_info(&symref_info, cb_data);
    + 		format_symref_info(&symref_info, &data->symref);
     -		packet_write_fmt(1, "%s %s%c%s%s%s%s%s%s agent=%s\n",
     +		packet_write_fmt(1, "%s %s%c%s%s%s%s%s%s object-format=%s agent=%s\n",
      			     oid_to_hex(oid), refname_nons,
      			     0, capabilities,
      			     (allow_unadvertised_object_request & ALLOW_TIP_SHA1) ?
     @@ upload-pack.c: static int send_ref(const char *refname, const struct object_id *oid,
    - 			     stateless_rpc ? " no-done" : "",
    + 			     data->stateless_rpc ? " no-done" : "",
      			     symref_info.buf,
      			     allow_filter ? " filter" : "",
     +			     the_hash_algo->name,
 6:  235d7f5b8f =  6:  5504199a26 connect: add function to parse multiple v1 capability values
 7:  0324e126b1 =  7:  59d1b463bf connect: add function to fetch value of a v2 server capability
 8:  cdba3122ce =  8:  1b2789cab7 pkt-line: add a member for hash algorithm
 9:  c8233c3b42 =  9:  971d05e2c7 transport: add a hash algorithm member
10:  b9273c4021 = 10:  7b90abd41a connect: add function to detect supported v1 hash functions
11:  e2d37b75c8 = 11:  578676762d send-pack: detect when the server doesn't support our hash
12:  602734cbbb = 12:  131e98603a connect: make parse_feature_value extern
13:  d97fa2c8aa = 13:  a786478005 fetch-pack: detect when the server doesn't support our hash
14:  ba052f1da7 = 14:  3436a6db7b connect: detect algorithm when fetching refs
15:  661d94d4de = 15:  c8d0760e3f builtin/receive-pack: detect when the server doesn't support our hash
16:  fd8b85390c = 16:  944bf6ab9a docs: update remote helper docs for object-format extensions
17:  32285e611f = 17:  9f072d34dc transport-helper: implement object-format extensions
18:  a33d1ed9a0 = 18:  2bdc53a8d9 remote-curl: implement object-format extensions
19:  fffdf0780d = 19:  87c6cd32f7 builtin/clone: initialize hash algorithm properly
20:  f616f85b4b = 20:  e2cc4d34fe t5562: pass object-format in synthesized test data
21:  eca43da42e = 21:  34b712a983 fetch-pack: parse and advertise the object-format capability
22:  22c1a62e10 = 22:  3e43a7d314 setup: set the_repository's hash algo when checking format
23:  7c7f2263d5 = 23:  fcf0ef64f0 t3200: mark assertion with SHA1 prerequisite
24:  ee8a71a926 = 24:  192578b5dd packfile: compute and use the index CRC offset
25:  6afecf0b09 = 25:  a560ed3194 t5302: modernize test formatting
26:  99a847ba4e = 26:  9a079f99a0 builtin/show-index: provide options to determine hash algo
27:  9f7c7bafaf = 27:  56d97c9c94 t1302: expect repo format version 1 for SHA-256
28:  d0ea597d63 = 28:  8c25898ded Documentation/technical: document object-format for protocol v2
29:  51848df542 = 29:  39af318fb0 connect: pass full packet reader when parsing v2 refs
30:  b57361f3b8 ! 30:  5b334cb9b9 connect: parse v2 refs with correct hash algorithm
    @@ connect.c: static int process_ref_v2(struct packet_reader *reader, struct ref **
      			*list = &peeled->next;
      
     @@ connect.c: struct ref **get_remote_refs(int fd_out, struct packet_reader *reader,
    - 			     const struct string_list *server_options)
    + 			     int stateless_rpc)
      {
      	int i;
     +	const char *hash_name;
31:  a0c0f0f7a3 = 31:  955ea0b4cb serve: advertise object-format capability for protocol v2
32:  1694f3f838 = 32:  5172e56115 t5500: make hash independent
33:  902b394667 = 33:  79b576238f builtin/ls-remote: initialize repository based on fetch
34:  cc12b9b51f ! 34:  0ecf5c1a1f remote-curl: detect algorithm for dumb HTTP by size
    @@ Commit message
         provide one. Detect the hash algorithm in use by the size of the first
         object ID.
     
    +    If we have an empty repository, we don't know what the hash algorithm is
    +    on the remote side, so default to whatever the local side has
    +    configured.  Without doing this, we cannot clone an empty repository
    +    since we don't know its hash algorithm.  Test this case appropriately,
    +    since we currently have no tests for cloning an empty repository with
    +    the dumb HTTP protocol.
    +
         We anonymize the URL like elsewhere in the function in case the user has
         decided to include a secret in the URL.
     
    @@ remote-curl.c: static struct ref *parse_git_refs(struct discovery *heads, int fo
     +	const char *p = memchr(heads->buf, '\t', heads->len);
     +	int algo;
     +	if (!p)
    -+		return NULL;
    ++		return the_hash_algo;
     +
     +	algo = hash_algo_by_length((p - heads->buf) / 2);
     +	if (algo == GIT_HASH_UNKNOWN)
    @@ remote-curl.c: static struct ref *parse_info_refs(struct discovery *heads)
      			if (!refs)
      				refs = ref;
      			if (last_ref)
    +
    + ## t/t5550-http-fetch-dumb.sh ##
    +@@ t/t5550-http-fetch-dumb.sh: test_expect_success 'create password-protected repository' '
    + 	       "$HTTPD_DOCUMENT_ROOT_PATH/auth/dumb/repo.git"
    + '
    + 
    ++test_expect_success 'create empty remote repository' '
    ++	git init --bare "$HTTPD_DOCUMENT_ROOT_PATH/empty.git" &&
    ++	(cd "$HTTPD_DOCUMENT_ROOT_PATH/empty.git" &&
    ++	 mkdir -p hooks &&
    ++	 write_script "hooks/post-update" <<-\EOF &&
    ++	 exec git update-server-info
    ++	EOF
    ++	 hooks/post-update
    ++	)
    ++'
    ++
    ++test_expect_success 'empty dumb HTTP repository has default hash algorithm' '
    ++	test_when_finished "rm -fr clone-empty" &&
    ++	git clone $HTTPD_URL/dumb/empty.git clone-empty &&
    ++	git -C clone-empty rev-parse --show-object-format >empty-format &&
    ++	test "$(cat empty-format)" = "$(test_oid algo)"
    ++'
    ++
    + setup_askpass_helper
    + 
    + test_expect_success 'cloning password-protected repository can fail' '
35:  b5425c9f54 = 35:  95bc1ef6fb builtin/index-pack: add option to specify hash algorithm
36:  5c70c24d7a = 36:  89c389100e t1050: pass algorithm to index-pack when outside repo
37:  460d6008e8 = 37:  bd93aabe6b remote-curl: avoid truncating refs with ls-remote
38:  60a98d9b53 = 38:  a8e31600cc t/helper: initialize the repository for test-sha1-array
39:  b66c3ead37 = 39:  d217758a83 t5702: offer an object-format capability in the test
40:  af43274a1f = 40:  6d1964142c t5703: use object-format serve option
41:  f5085b1f3f = 41:  84cad9b3ba t5704: send object-format capability with SHA-256
42:  a1b01babda = 42:  1e96dbf3dc t5300: pass --object-format to git index-pack
43:  dbb5f7195e = 43:  14cb067334 bundle: detect hash algorithm when reading refs
44:  6c823bbe68 = 44:  816d08eb2e remote-testgit: adapt for object-format
Previous: brian m. carlsonNext: brian m. carlson
Message 129 of 175 in “SHA-256 part 2/3: protocol functionality”
  1. 00/44 SHA-256 part 2/3: protocol functionalitybrian m. carlson, May 13, 2020
  2. 01/44 t1050: match object ID paths in a hash-insensitive waybrian m. carlson, May 13, 2020
  3. 02/44 Documentation: document v1 protocol object-format capabilitybrian m. carlson, May 13, 2020
  4. Martin ÅgrenMay 13, 2020
  5. Junio C HamanoMay 14, 2020
  6. brian m. carlsonMay 15, 2020
  7. Junio C HamanoMay 16, 2020
  8. 04/44 wrapper: add function to compare strings with different NUL terminationbrian m. carlson, May 13, 2020
  9. Martin ÅgrenMay 13, 2020
  10. 06/44 connect: add function to parse multiple v1 capability valuesbrian m. carlson, May 13, 2020
  11. 07/44 connect: add function to fetch value of a v2 server capabilitybrian m. carlson, May 13, 2020
  12. Martin ÅgrenMay 13, 2020
  13. 08/44 pkt-line: add a member for hash algorithmbrian m. carlson, May 13, 2020
  14. 10/44 connect: add function to detect supported v1 hash functionsbrian m. carlson, May 13, 2020
  15. Martin ÅgrenMay 13, 2020
  16. brian m. carlsonMay 13, 2020
  17. 15/44 builtin/receive-pack: detect when the server doesn't support our hashbrian m. carlson, May 13, 2020
  18. Martin ÅgrenMay 16, 2020
  19. 12/44 connect: make parse_feature_value externbrian m. carlson, May 13, 2020
  20. Martin ÅgrenMay 13, 2020
  21. 13/44 fetch-pack: detect when the server doesn't support our hashbrian m. carlson, May 13, 2020
  22. 25/44 packfile: compute and use the index CRC offsetbrian m. carlson, May 13, 2020
  23. Martin ÅgrenMay 16, 2020
  24. 24/44 t3200: mark assertion with SHA1 prerequisitebrian m. carlson, May 13, 2020
  25. Martin ÅgrenMay 16, 2020
  26. 22/44 fetch-pack: parse and advertise the object-format capabilitybrian m. carlson, May 13, 2020
  27. Martin ÅgrenMay 16, 2020
  28. 23/44 setup: set the_repository's hash algo when checking formatbrian m. carlson, May 13, 2020
  29. Martin ÅgrenMay 16, 2020
  30. brian m. carlsonMay 16, 2020
  31. 21/44 t5704: send object-format capability with SHA-256brian m. carlson, May 13, 2020
  32. Martin ÅgrenMay 16, 2020
  33. brian m. carlsonMay 16, 2020
  34. 18/44 remote-curl: implement object-format extensionsbrian m. carlson, May 13, 2020
  35. 30/44 connect: pass full packet reader when parsing v2 refsbrian m. carlson, May 13, 2020
  36. Martin ÅgrenMay 16, 2020
  37. 36/44 builtin/index-pack: add option to specify hash algorithmbrian m. carlson, May 13, 2020
  38. Martin ÅgrenMay 16, 2020
  39. brian m. carlsonMay 16, 2020
  40. Martin ÅgrenMay 17, 2020
  41. brian m. carlsonMay 17, 2020
  42. 32/44 serve: advertise object-format capability for protocol v2brian m. carlson, May 13, 2020
  43. Martin ÅgrenMay 16, 2020
  44. 44/44 remote-testgit: adapt for object-formatbrian m. carlson, May 13, 2020
  45. 20/44 t5562: pass object-format in synthesized test databrian m. carlson, May 13, 2020
  46. Martin ÅgrenMay 16, 2020
  47. brian m. carlsonMay 16, 2020
  48. 43/44 bundle: detect hash algorithm when reading refsbrian m. carlson, May 13, 2020
  49. 41/44 t5703: use object-format serve optionbrian m. carlson, May 13, 2020
  50. 42/44 t5300: pass --object-format to git index-packbrian m. carlson, May 13, 2020
  51. 40/44 t5702: offer an object-format capability in the testbrian m. carlson, May 13, 2020
  52. 39/44 t/helper: initialize the repository for test-sha1-arraybrian m. carlson, May 13, 2020
  53. 03/44 connect: have ref processing code take struct packet_readerbrian m. carlson, May 13, 2020
  54. Martin ÅgrenMay 13, 2020
  55. 09/44 transport: add a hash algorithm memberbrian m. carlson, May 13, 2020
  56. 16/44 docs: update remote helper docs for object-format extensionsbrian m. carlson, May 13, 2020
  57. 19/44 builtin/clone: initialize hash algorithm properlybrian m. carlson, May 13, 2020
  58. Martin ÅgrenMay 16, 2020
  59. 14/44 connect: detect algorithm when fetching refsbrian m. carlson, May 13, 2020
  60. Martin ÅgrenMay 16, 2020
  61. brian m. carlsonMay 16, 2020
  62. 05/44 remote: advertise the object-format capability on the server sidebrian m. carlson, May 13, 2020
  63. 27/44 builtin/show-index: provide options to determine hash algobrian m. carlson, May 13, 2020
  64. Junio C HamanoMay 18, 2020
  65. brian m. carlsonMay 19, 2020
  66. 33/44 t5500: make hash independentbrian m. carlson, May 13, 2020
  67. 38/44 remote-curl: avoid truncating refs with ls-remotebrian m. carlson, May 13, 2020
  68. 35/44 remote-curl: detect algorithm for dumb HTTP by sizebrian m. carlson, May 13, 2020
  69. Martin ÅgrenMay 16, 2020
  70. 37/44 t1050: pass algorithm to index-pack when outside repobrian m. carlson, May 13, 2020
  71. 34/44 builtin/ls-remote: initialize repository based on fetchbrian m. carlson, May 13, 2020
  72. Martin ÅgrenMay 16, 2020
  73. brian m. carlsonMay 16, 2020
  74. 31/44 connect: parse v2 refs with correct hash algorithmbrian m. carlson, May 13, 2020
  75. Martin ÅgrenMay 16, 2020
  76. brian m. carlsonMay 17, 2020
  77. 11/44 send-pack: detect when the server doesn't support our hashbrian m. carlson, May 13, 2020
  78. Martin ÅgrenMay 13, 2020
  79. brian m. carlsonMay 13, 2020
  80. 28/44 t1302: expect repo format version 1 for SHA-256brian m. carlson, May 13, 2020
  81. 26/44 t5302: modernize test formattingbrian m. carlson, May 13, 2020
  82. 29/44 Documentation/technical: document object-format for protocol v2brian m. carlson, May 13, 2020
  83. 17/44 transport-helper: implement object-format extensionsbrian m. carlson, May 13, 2020
  84. 00/44 SHA-256 part 2/3: protocol functionalitybrian m. carlson, May 25, 2020
  85. 01/44 t1050: match object ID paths in a hash-insensitive waybrian m. carlson, May 25, 2020
  86. 02/44 Documentation: document v1 protocol object-format capabilitybrian m. carlson, May 25, 2020
  87. 04/44 wrapper: add function to compare strings with different NUL terminationbrian m. carlson, May 25, 2020
  88. 03/44 connect: have ref processing code take struct packet_readerbrian m. carlson, May 25, 2020
  89. 14/44 connect: detect algorithm when fetching refsbrian m. carlson, May 25, 2020
  90. 13/44 fetch-pack: detect when the server doesn't support our hashbrian m. carlson, May 25, 2020
  91. 12/44 connect: make parse_feature_value externbrian m. carlson, May 25, 2020
  92. 16/44 docs: update remote helper docs for object-format extensionsbrian m. carlson, May 25, 2020
  93. 11/44 send-pack: detect when the server doesn't support our hashbrian m. carlson, May 25, 2020
  94. 27/44 t1302: expect repo format version 1 for SHA-256brian m. carlson, May 25, 2020
  95. 25/44 t5302: modernize test formattingbrian m. carlson, May 25, 2020
  96. 32/44 t5500: make hash independentbrian m. carlson, May 25, 2020
  97. 34/44 remote-curl: detect algorithm for dumb HTTP by sizebrian m. carlson, May 25, 2020
  98. 35/44 builtin/index-pack: add option to specify hash algorithmbrian m. carlson, May 25, 2020
  99. 43/44 bundle: detect hash algorithm when reading refsbrian m. carlson, May 25, 2020
  100. 39/44 t5702: offer an object-format capability in the testbrian m. carlson, May 25, 2020
  101. 44/44 remote-testgit: adapt for object-formatbrian m. carlson, May 25, 2020
  102. 38/44 t/helper: initialize the repository for test-sha1-arraybrian m. carlson, May 25, 2020
  103. 37/44 remote-curl: avoid truncating refs with ls-remotebrian m. carlson, May 25, 2020
  104. 36/44 t1050: pass algorithm to index-pack when outside repobrian m. carlson, May 25, 2020
  105. 33/44 builtin/ls-remote: initialize repository based on fetchbrian m. carlson, May 25, 2020
  106. 30/44 connect: parse v2 refs with correct hash algorithmbrian m. carlson, May 25, 2020
  107. 05/44 remote: advertise the object-format capability on the server sidebrian m. carlson, May 25, 2020
  108. 23/44 t3200: mark assertion with SHA1 prerequisitebrian m. carlson, May 25, 2020
  109. 29/44 connect: pass full packet reader when parsing v2 refsbrian m. carlson, May 25, 2020
  110. 09/44 transport: add a hash algorithm memberbrian m. carlson, May 25, 2020
  111. 10/44 connect: add function to detect supported v1 hash functionsbrian m. carlson, May 25, 2020
  112. 07/44 connect: add function to fetch value of a v2 server capabilitybrian m. carlson, May 25, 2020
  113. 08/44 pkt-line: add a member for hash algorithmbrian m. carlson, May 25, 2020
  114. 06/44 connect: add function to parse multiple v1 capability valuesbrian m. carlson, May 25, 2020
  115. 21/44 fetch-pack: parse and advertise the object-format capabilitybrian m. carlson, May 25, 2020
  116. 19/44 builtin/clone: initialize hash algorithm properlybrian m. carlson, May 25, 2020
  117. 20/44 t5562: pass object-format in synthesized test databrian m. carlson, May 25, 2020
  118. 40/44 t5703: use object-format serve optionbrian m. carlson, May 25, 2020
  119. 41/44 t5704: send object-format capability with SHA-256brian m. carlson, May 25, 2020
  120. 42/44 t5300: pass --object-format to git index-packbrian m. carlson, May 25, 2020
  121. 31/44 serve: advertise object-format capability for protocol v2brian m. carlson, May 25, 2020
  122. 28/44 Documentation/technical: document object-format for protocol v2brian m. carlson, May 25, 2020
  123. 26/44 builtin/show-index: provide options to determine hash algobrian m. carlson, May 25, 2020
  124. 24/44 packfile: compute and use the index CRC offsetbrian m. carlson, May 25, 2020
  125. 22/44 setup: set the_repository's hash algo when checking formatbrian m. carlson, May 25, 2020
  126. 15/44 builtin/receive-pack: detect when the server doesn't support our hashbrian m. carlson, May 25, 2020
  127. 18/44 remote-curl: implement object-format extensionsbrian m. carlson, May 25, 2020
  128. 17/44 transport-helper: implement object-format extensionsbrian m. carlson, May 25, 2020
  129. 00/44 SHA-256 part 2/3: protocol functionalitybrian m. carlson, Jun 19, 2020
  130. 02/44 Documentation: document v1 protocol object-format capabilitybrian m. carlson, Jun 19, 2020
  131. 03/44 connect: have ref processing code take struct packet_readerbrian m. carlson, Jun 19, 2020
  132. 10/44 connect: add function to detect supported v1 hash functionsbrian m. carlson, Jun 19, 2020
  133. 17/44 transport-helper: implement object-format extensionsbrian m. carlson, Jun 19, 2020
  134. 22/44 setup: set the_repository's hash algo when checking formatbrian m. carlson, Jun 19, 2020
  135. 21/44 fetch-pack: parse and advertise the object-format capabilitybrian m. carlson, Jun 19, 2020
  136. 26/44 builtin/show-index: provide options to determine hash algobrian m. carlson, Jun 19, 2020
  137. 25/44 t5302: modernize test formattingbrian m. carlson, Jun 19, 2020
  138. 30/44 connect: parse v2 refs with correct hash algorithmbrian m. carlson, Jun 19, 2020
  139. 34/44 remote-curl: detect algorithm for dumb HTTP by sizebrian m. carlson, Jun 19, 2020
  140. 29/44 connect: pass full packet reader when parsing v2 refsbrian m. carlson, Jun 19, 2020
  141. 31/44 serve: advertise object-format capability for protocol v2brian m. carlson, Jun 19, 2020
  142. 37/44 remote-curl: avoid truncating refs with ls-remotebrian m. carlson, Jun 19, 2020
  143. 33/44 builtin/ls-remote: initialize repository based on fetchbrian m. carlson, Jun 19, 2020
  144. 28/44 Documentation/technical: document object-format for protocol v2brian m. carlson, Jun 19, 2020
  145. 39/44 t5702: offer an object-format capability in the testbrian m. carlson, Jun 19, 2020
  146. 41/44 t5704: send object-format capability with SHA-256brian m. carlson, Jun 19, 2020
  147. 01/44 t1050: match object ID paths in a hash-insensitive waybrian m. carlson, Jun 19, 2020
  148. 32/44 t5500: make hash independentbrian m. carlson, Jun 19, 2020
  149. 16/44 docs: update remote helper docs for object-format extensionsbrian m. carlson, Jun 19, 2020
  150. 09/44 transport: add a hash algorithm memberbrian m. carlson, Jun 19, 2020
  151. 14/44 connect: detect algorithm when fetching refsbrian m. carlson, Jun 19, 2020
  152. 07/44 connect: add function to fetch value of a v2 server capabilitybrian m. carlson, Jun 19, 2020
  153. 05/44 remote: advertise the object-format capability on the server sidebrian m. carlson, Jun 19, 2020
  154. 06/44 connect: add function to parse multiple v1 capability valuesbrian m. carlson, Jun 19, 2020
  155. 44/44 remote-testgit: adapt for object-formatbrian m. carlson, Jun 19, 2020
  156. 43/44 bundle: detect hash algorithm when reading refsbrian m. carlson, Jun 19, 2020
  157. 04/44 wrapper: add function to compare strings with different NUL terminationbrian m. carlson, Jun 19, 2020
  158. 35/44 builtin/index-pack: add option to specify hash algorithmbrian m. carlson, Jun 19, 2020
  159. 27/44 t1302: expect repo format version 1 for SHA-256brian m. carlson, Jun 19, 2020
  160. 40/44 t5703: use object-format serve optionbrian m. carlson, Jun 19, 2020
  161. 38/44 t/helper: initialize the repository for test-sha1-arraybrian m. carlson, Jun 19, 2020
  162. 36/44 t1050: pass algorithm to index-pack when outside repobrian m. carlson, Jun 19, 2020
  163. 42/44 t5300: pass --object-format to git index-packbrian m. carlson, Jun 19, 2020
  164. 15/44 builtin/receive-pack: detect when the server doesn't support our hashbrian m. carlson, Jun 19, 2020
  165. 18/44 remote-curl: implement object-format extensionsbrian m. carlson, Jun 19, 2020
  166. 23/44 t3200: mark assertion with SHA1 prerequisitebrian m. carlson, Jun 19, 2020
  167. 24/44 packfile: compute and use the index CRC offsetbrian m. carlson, Jun 19, 2020
  168. 11/44 send-pack: detect when the server doesn't support our hashbrian m. carlson, Jun 19, 2020
  169. 20/44 t5562: pass object-format in synthesized test databrian m. carlson, Jun 19, 2020
  170. 19/44 builtin/clone: initialize hash algorithm properlybrian m. carlson, Jun 19, 2020
  171. 13/44 fetch-pack: detect when the server doesn't support our hashbrian m. carlson, Jun 19, 2020
  172. 08/44 pkt-line: add a member for hash algorithmbrian m. carlson, Jun 19, 2020
  173. 12/44 connect: make parse_feature_value externbrian m. carlson, Jun 19, 2020
  174. Junio C HamanoJun 19, 2020
  175. brian m. carlsonJun 20, 2020

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.