<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4010-diff-pathspec.sh, branch jch</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=jch</id>
<link rel='self' href='https://git.shady.money/git/atom?h=jch'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2024-11-20T23:23:48Z</updated>
<entry>
<title>t: remove TEST_PASSES_SANITIZE_LEAK annotations</title>
<updated>2024-11-20T23:23:48Z</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2024-11-20T13:39:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc1ddf42af6742fae7e770cae20e30d7902014c0'/>
<id>urn:sha1:fc1ddf42af6742fae7e770cae20e30d7902014c0</id>
<content type='text'>
Now that the default value for TEST_PASSES_SANITIZE_LEAK is `true` there
is no longer a need to have that variable declared in all of our tests.
Drop it.

Signed-off-by: Patrick Steinhardt &lt;ps@pks.im&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>leak tests: mark some diff tests as passing with SANITIZE=leak</title>
<updated>2021-11-01T18:23:08Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-10-30T22:24:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=16d4bd4f14e91ab5f70fb74407fc27fc4c8bfe0f'/>
<id>urn:sha1:16d4bd4f14e91ab5f70fb74407fc27fc4c8bfe0f</id>
<content type='text'>
Mark some tests that match "*diff*" as passing when git is compiled
with SANITIZE=leak. They'll now be listed as running under the
"GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI
target).

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>test libs: rename "diff-lib" to "lib-diff"</title>
<updated>2021-02-12T19:58:21Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-02-12T13:29:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ebd73f50c680ca0984aae18fad7b821464ed2411'/>
<id>urn:sha1:ebd73f50c680ca0984aae18fad7b821464ed2411</id>
<content type='text'>
Rename the "diff-lib" to "lib-diff". With this rename and preceding
commits there is no remaining t/*lib* which doesn't follow the
convention of being called t/lib-*.

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>tree-walk.c: don't match submodule entries for 'submod/anything'</title>
<updated>2020-06-08T19:28:48Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder.dev@gmail.com</email>
</author>
<published>2020-06-05T13:00:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=35a9f1e99c5d31635bb78a4f2d498e72c04fc471'/>
<id>urn:sha1:35a9f1e99c5d31635bb78a4f2d498e72c04fc471</id>
<content type='text'>
Submodules should be handled the same as regular directories with
respect to the presence of a trailing slash, i.e. commands like:

  git diff rev1 rev2 -- $path
  git rev-list HEAD -- $path

should produce the same output whether $path is 'submod' or 'submod/'.
This has been fixed in commit 74b4f7f277 (tree-walk.c: ignore trailing
slash on submodule in tree_entry_interesting(), 2014-01-23).

Unfortunately, that commit had the unintended side effect to handle
'submod/anything' the same as 'submod' and 'submod/' as well, e.g.:

  $ git log --oneline --name-only -- sha1collisiondetection/whatever
  4125f78222 sha1dc: update from upstream
  sha1collisiondetection
  07a20f569b Makefile: fix unaligned loads in sha1dc with UBSan
  sha1collisiondetection
  23e37f8e9d sha1dc: update from upstream
  sha1collisiondetection
  86cfd61e6b sha1dc: optionally use sha1collisiondetection as a submodule
  sha1collisiondetection

Fix this by rejecting submodules as partial pathnames when their
trailing slash is followed by anything.

Signed-off-by: SZEDER Gábor &lt;szeder.dev@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>t4010: abstract away SHA-1-specific constants</title>
<updated>2019-10-28T02:34:58Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2019-10-28T00:58:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=32a67072673ac444da6c618d62be80559a7728ce'/>
<id>urn:sha1:32a67072673ac444da6c618d62be80559a7728ce</id>
<content type='text'>
Adjust the test so that it computes variables for object IDs instead of
using hard-coded hashes.

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 'ab/test-must-be-empty-for-master'</title>
<updated>2018-08-20T18:33:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-20T18:33:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14677d25ab50efcf57621ae69d6ba858a5f86165'/>
<id>urn:sha1:14677d25ab50efcf57621ae69d6ba858a5f86165</id>
<content type='text'>
Test updates.

* ab/test-must-be-empty-for-master:
  tests: make use of the test_must_be_empty function
</content>
</entry>
<entry>
<title>tests: make use of the test_must_be_empty function</title>
<updated>2018-07-30T18:18:41Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-07-27T17:48:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3c6751b18170276f80e3578d16877d43ad22709'/>
<id>urn:sha1:d3c6751b18170276f80e3578d16877d43ad22709</id>
<content type='text'>
Change various tests that use an idiom of the form:

    &gt;expect &amp;&amp;
    test_cmp expect actual

To instead use:

    test_must_be_empty actual

The test_must_be_empty() wrapper was introduced in ca8d148daf ("test:
test_must_be_empty helper", 2013-06-09). Many of these tests have been
added after that time. This was mostly found with, and manually pruned
from:

    git grep '^\s+&gt;.*expect.* &amp;&amp;$' t

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>t: drop unnecessary terminating semicolon in subshell</title>
<updated>2018-07-03T19:38:04Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-02T00:23:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02779185d5b280488cd1eafb1cdbb35babee5efe'/>
<id>urn:sha1:02779185d5b280488cd1eafb1cdbb35babee5efe</id>
<content type='text'>
Signed-off-by: Eric Sunshine &lt;sunshine@sunshineco.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test-lib.sh: introduce and use $EMPTY_TREE</title>
<updated>2016-07-18T20:45:32Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-07-16T05:06:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9e7d9f8c3e32280418a0bedd9d37f2a0cc2e2b9'/>
<id>urn:sha1:f9e7d9f8c3e32280418a0bedd9d37f2a0cc2e2b9</id>
<content type='text'>
This is a special SHA1. Let's keep it at one place, easier to replace
later when the hash change comes, easier to recognize.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/diff-test-updates'</title>
<updated>2015-03-05T20:45:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-03-05T20:45:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fa8baa4b2acf6f8be8f28bf84493e0889e45eb91'/>
<id>urn:sha1:fa8baa4b2acf6f8be8f28bf84493e0889e45eb91</id>
<content type='text'>
Test clean-up.

* jc/diff-test-updates:
  test_ln_s_add: refresh stat info of fake symbolic links
  t4008: modernise style
  t/diff-lib: check exact object names in compare_diff_raw
  tests: do not borrow from COPYING and README from the real source
  t4010: correct expected object names
  t9300: correct expected object names
  t4008: correct stale comments
</content>
</entry>
</feed>
