<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t5318-commit-graph.sh, branch v2.20.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.20.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.20.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-10-16T07:16:01Z</updated>
<entry>
<title>Merge branch 'md/test-cleanup'</title>
<updated>2018-10-16T07:16:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-16T07:16:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2e2136ad7291524a2b67a179dea493f4a562453'/>
<id>urn:sha1:f2e2136ad7291524a2b67a179dea493f4a562453</id>
<content type='text'>
Various test scripts have been updated for style and also correct
handling of exit status of various commands.

* md/test-cleanup:
  tests: order arguments to git-rev-list properly
  t9109: don't swallow Git errors upstream of pipes
  tests: don't swallow Git errors upstream of pipes
  t/*: fix ordering of expected/observed arguments
  tests: standardize pipe placement
  Documentation: add shell guidelines
  t/README: reformat Do, Don't, Keep in mind lists
</content>
</entry>
<entry>
<title>Merge branch 'ds/commit-graph-with-grafts'</title>
<updated>2018-10-16T07:15:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-10-16T07:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d8f8ebb74d21b51cfbf427a436094134af36ee2'/>
<id>urn:sha1:6d8f8ebb74d21b51cfbf427a436094134af36ee2</id>
<content type='text'>
The recently introduced commit-graph auxiliary data is incompatible
with mechanisms such as replace &amp; grafts that "breaks" immutable
nature of the object reference relationship.  Disable optimizations
based on its use (and updating existing commit-graph) when these
incompatible features are in use in the repository.

* ds/commit-graph-with-grafts:
  commit-graph: close_commit_graph before shallow walk
  commit-graph: not compatible with uninitialized repo
  commit-graph: not compatible with grafts
  commit-graph: not compatible with replace objects
  test-repository: properly init repo
  commit-graph: update design document
  refs.c: upgrade for_each_replace_ref to be a each_repo_ref_fn callback
  refs.c: migrate internal ref iteration to pass thru repository argument
</content>
</entry>
<entry>
<title>t/*: fix ordering of expected/observed arguments</title>
<updated>2018-10-06T23:51:18Z</updated>
<author>
<name>Matthew DeVore</name>
<email>matvore@google.com</email>
</author>
<published>2018-10-05T21:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dcbaa0b361f5bebcbe6eca446819fadd02083461'/>
<id>urn:sha1:dcbaa0b361f5bebcbe6eca446819fadd02083461</id>
<content type='text'>
Fix various places where the ordering was obviously wrong, meaning it
was easy to find with grep.

Signed-off-by: Matthew DeVore &lt;matvore@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t5318: use test_oid for HASH_LEN</title>
<updated>2018-09-17T15:10:32Z</updated>
<author>
<name>Derrick Stolee</name>
<email>stolee@gmail.com</email>
</author>
<published>2018-09-13T05:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae0c89d41bbdbcdd53296a8260907105de38e112'/>
<id>urn:sha1:ae0c89d41bbdbcdd53296a8260907105de38e112</id>
<content type='text'>
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: fix and add lint for non-portable grep --file</title>
<updated>2018-08-27T21:07:32Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-08-24T15:20:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4a3ed638027343cbfc47821973c2c3784a5c53ed'/>
<id>urn:sha1:4a3ed638027343cbfc47821973c2c3784a5c53ed</id>
<content type='text'>
The --file option to grep isn't in POSIX[1], but -f is[1]. Let's check
for that in the future, and fix the portability regression in
f237c8b6fe ("commit-graph: implement git-commit-graph write",
2018-04-02) that broke e.g. AIX.

1. http://pubs.opengroup.org/onlinepubs/009695399/utilities/grep.html

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: not compatible with grafts</title>
<updated>2018-08-21T17:22:51Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-08-20T18:24:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=20fd6d57996e33c30b6bb030329523d0116f15ec'/>
<id>urn:sha1:20fd6d57996e33c30b6bb030329523d0116f15ec</id>
<content type='text'>
Augment commit_graph_compatible(r) to return false when the given
repository r has commit grafts or is a shallow clone. Test that in these
situations we ignore existing commit-graph files and we do not write new
commit-graph files.

Helped-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-graph: not compatible with replace objects</title>
<updated>2018-08-21T17:22:51Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2018-08-20T18:24:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1'/>
<id>urn:sha1:d6538246d3d4edbfbc9b0af6a2aa38552d35f7f1</id>
<content type='text'>
Create new method commit_graph_compatible(r) to check if a given
repository r is compatible with the commit-graph feature. Fill the
method with a check to see if replace-objects exist. Test this
interaction succeeds, including ignoring an existing commit-graph and
failing to write a new commit-graph. However, we do ensure that
we write a new commit-graph by setting read_replace_refs to 0, thereby
ignoring the replace refs.

Signed-off-by: Derrick Stolee &lt;dstolee@microsoft.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jt/commit-graph-per-object-store'</title>
<updated>2018-08-20T18:33:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-20T18:33:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3bc484af74132332f5bb69401f223e2fe11bfa39'/>
<id>urn:sha1:3bc484af74132332f5bb69401f223e2fe11bfa39</id>
<content type='text'>
Test update.

* jt/commit-graph-per-object-store:
  t5318: avoid unnecessary command substitutions
</content>
</entry>
<entry>
<title>Merge branch 'ds/commit-graph-fsck'</title>
<updated>2018-08-20T18:33:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-20T18:33:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5dd54744b8443494f2190d5c9efa4b5ae0f69f06'/>
<id>urn:sha1:5dd54744b8443494f2190d5c9efa4b5ae0f69f06</id>
<content type='text'>
Test fix.

* ds/commit-graph-fsck:
  t5318: use 'test_cmp_bin' to compare commit-graph files
</content>
</entry>
<entry>
<title>t5318: avoid unnecessary command substitutions</title>
<updated>2018-08-13T19:09:02Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2018-08-13T00:30:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c4586301dca0d25708bfcec00915e4493278403'/>
<id>urn:sha1:3c4586301dca0d25708bfcec00915e4493278403</id>
<content type='text'>
Two tests added in dade47c06c (commit-graph: add repo arg to graph
readers, 2018-07-11) prepare the contents of 'expect' files by
'echo'ing the results of command substitutions.  That's unncessary,
avoid them by directly saving the output of the commands executed in
those command substitutions.

Signed-off-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
