<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t5318-commit-graph.sh, branch v2.26.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-02-17T21:22:16Z</updated>
<entry>
<title>Merge branch 'bc/hash-independent-tests-part-8'</title>
<updated>2020-02-17T21:22:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-02-17T21:22:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5af345a4388630b422a53fecfcc48b33e2439380'/>
<id>urn:sha1:5af345a4388630b422a53fecfcc48b33e2439380</id>
<content type='text'>
Preparation for SHA-256 migration continues.

* bc/hash-independent-tests-part-8: (21 commits)
  t6024: update for SHA-256
  t6006: make hash size independent
  t6000: abstract away SHA-1-specific constants
  t5703: make test work with SHA-256
  t5607: make hash size independent
  t5318: update for SHA-256
  t5515: make test hash independent
  t5321: make test hash independent
  t5313: make test hash independent
  t5309: make test hash independent
  t5302: make hash size independent
  t4060: make test work with SHA-256
  t4211: add test cases for SHA-256
  t4211: move SHA-1-specific test cases into a directory
  t4013: make test hash independent
  t3311: make test work with SHA-256
  t3310: make test work with SHA-256
  t3309: make test work with SHA-256
  t3308: make test work with SHA-256
  t3206: make hash size independent
  ...
</content>
</entry>
<entry>
<title>Merge branch 'tb/commit-graph-object-dir'</title>
<updated>2020-02-14T20:54:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-02-14T20:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=53c3be2c29b97a68145d42b413df2f8c070a2084'/>
<id>urn:sha1:53c3be2c29b97a68145d42b413df2f8c070a2084</id>
<content type='text'>
The code to compute the commit-graph has been taught to use a more
robust way to tell if two object directories refer to the same
thing.

* tb/commit-graph-object-dir:
  commit-graph.h: use odb in 'load_commit_graph_one_fd_st'
  commit-graph.c: remove path normalization, comparison
  commit-graph.h: store object directory in 'struct commit_graph'
  commit-graph.h: store an odb in 'struct write_commit_graph_context'
  t5318: don't pass non-object directory to '--object-dir'
</content>
</entry>
<entry>
<title>t5318: update for SHA-256</title>
<updated>2020-02-07T19:07:30Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2020-02-07T00:52:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=48c10cc0e6df1c916d00a661ee355817d82f30ca'/>
<id>urn:sha1:48c10cc0e6df1c916d00a661ee355817d82f30ca</id>
<content type='text'>
Switch two tests to use $ZERO_OID to represent the all-zeros object ID.

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>Merge branch 'bc/hash-independent-tests-part-7'</title>
<updated>2020-02-05T22:34:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-02-05T22:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f52ab33616ee1d241f2292f1c1e47ba84a263523'/>
<id>urn:sha1:f52ab33616ee1d241f2292f1c1e47ba84a263523</id>
<content type='text'>
Preparation of test scripts for the day when the object names will
use SHA-256 continues.

* bc/hash-independent-tests-part-7:
  t5604: make hash independent
  t5601: switch into repository to hash object
  t5562: use $ZERO_OID
  t5540: make hash size independent
  t5537: make hash size independent
  t5530: compute results based on object length
  t5512: abstract away SHA-1-specific constants
  t5510: make hash size independent
  t5504: make hash algorithm independent
  t5324: make hash size independent
  t5319: make test work with SHA-256
  t5319: change invalid offset for SHA-256 compatibility
  t5318: update for SHA-256
  t4300: abstract away SHA-1-specific constants
  t4204: make hash size independent
  t4202: abstract away SHA-1-specific constants
  t4200: make hash size independent
  t4134: compute appropriate length constant
  t4066: compute index line in diffs
  t4054: make hash-size independent
</content>
</entry>
<entry>
<title>t5318: don't pass non-object directory to '--object-dir'</title>
<updated>2020-01-31T20:47:40Z</updated>
<author>
<name>Taylor Blau</name>
<email>me@ttaylorr.com</email>
</author>
<published>2020-01-30T23:00:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1793280e91c51d5923e1c714ed6e0cd1291cbe77'/>
<id>urn:sha1:1793280e91c51d5923e1c714ed6e0cd1291cbe77</id>
<content type='text'>
In f237c8b6fe (commit-graph: implement git-commit-graph write,
2018-04-02) the test t5318.3 was introduced to ensure that calling 'git
commit-graph write' in a repository with no packfiles does not write any
commit-graph file(s).

To exercise more paths in 'builtin/commit-graph.c', this test passes
'--object-dir' to 'git commit-graph write', but the given argument
refers to the working copy, not the object directory.

Since the commit-graph sub-commands currently swallow these errors, this
does not result in a test failure. But, it is only lucky that the test
ends with no commit-graphs, since there were none to begin with.

In preparation for a future commit where an '--object-dir' argument that
does not match a known object directory will print out a failure, let's
fix the test to still use '--object-dir', but pass the correct location
to the object store instead of '.'.

Signed-off-by: Taylor Blau &lt;me@ttaylorr.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t5318: update for SHA-256</title>
<updated>2020-01-15T22:06:19Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2019-12-21T19:49:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1d86c8f0ce3471f0e8f2194dd821ffd292d79e3d'/>
<id>urn:sha1:1d86c8f0ce3471f0e8f2194dd821ffd292d79e3d</id>
<content type='text'>
When running with SHA-256 as the hash algorithm, the hash version octet
is 2 instead of 1.  Pick the right value depending on the hash algorithm
and use it where we look for the existing value.  To ensure the test
checking for invalid data passes, use 3 as the test value for an invalid
hash version.

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>Merge branch 'ds/commit-graph-delay-gen-progress'</title>
<updated>2019-12-10T21:11:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-10T21:11:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41dac79c2f49f9ea1c808f0f208bde9aa4ed91cb'/>
<id>urn:sha1:41dac79c2f49f9ea1c808f0f208bde9aa4ed91cb</id>
<content type='text'>
One kind of progress messages were always given during commit-graph
generation, instead of following the "if it takes more than two
seconds, show progress" pattern, which has been corrected.

* ds/commit-graph-delay-gen-progress:
  commit-graph: use start_delayed_progress()
  progress: create GIT_PROGRESS_DELAY
</content>
</entry>
<entry>
<title>Merge branch 'ds/test-read-graph'</title>
<updated>2019-12-01T17:04:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-01T17:04:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=723a8adba5748a8acd0024e68276119d57eee6f8'/>
<id>urn:sha1:723a8adba5748a8acd0024e68276119d57eee6f8</id>
<content type='text'>
Dev support for commit-graph feature.

* ds/test-read-graph:
  test-tool: use 'read-graph' helper
</content>
</entry>
<entry>
<title>progress: create GIT_PROGRESS_DELAY</title>
<updated>2019-11-27T01:57:10Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2019-11-25T21:28:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=44a4693bfcec1876b29cdaec3625819d80ea1280'/>
<id>urn:sha1:44a4693bfcec1876b29cdaec3625819d80ea1280</id>
<content type='text'>
The start_delayed_progress() method is a preferred way to show
optional progress to users as it ignores steps that take less
than two seconds. However, this makes testing unreliable as tests
expect to be very fast.

In addition, users may want to decrease or increase this time
interval depending on their preferences for terminal noise.

Create the GIT_PROGRESS_DELAY environment variable to control
the delay set during start_delayed_progress(). Set the value
in some tests to guarantee their output remains consistent.

Helped-by: Jeff King &lt;peff@peff.net&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>test-tool: use 'read-graph' helper</title>
<updated>2019-11-13T02:14:16Z</updated>
<author>
<name>Derrick Stolee</name>
<email>dstolee@microsoft.com</email>
</author>
<published>2019-11-12T16:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4bd0593e0f9149b0e72886c0a2d85bb22fc5404a'/>
<id>urn:sha1:4bd0593e0f9149b0e72886c0a2d85bb22fc5404a</id>
<content type='text'>
The 'git commit-graph read' subcommand is used in test scripts to check
that the commit-graph contents match the expected data. Mostly, this
helps check the header information and the list of chunks. Users do not
need this information, so move the functionality to a test helper.

Reported-by: Bryan Turner &lt;bturner@atlassian.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>
</feed>
