<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4002-diff-basic.sh, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-05-14T02:02:01Z</updated>
<entry>
<title>t: switch $_x40 to $OID_REGEX</title>
<updated>2018-05-14T02:02:01Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ece6ad2819078733d8fb8a7cd47929786631ed1'/>
<id>urn:sha1:2ece6ad2819078733d8fb8a7cd47929786631ed1</id>
<content type='text'>
Switch all uses of $_x40 to $OID_REGEX so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_x40/$OID_REGEX/g'

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>t: switch $_z40 to $ZERO_OID</title>
<updated>2018-05-14T02:02:00Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-05-13T02:24:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8125a58b912e52eba7889e1dba9fe6d711b0ffdf'/>
<id>urn:sha1:8125a58b912e52eba7889e1dba9fe6d711b0ffdf</id>
<content type='text'>
Switch all uses of $_z40 to $ZERO_OID so that they work correctly with
larger hashes.  This commit was created by using the following sed
command to modify all files in the t directory except t/test-lib.sh:

  sed -i 's/\$_z40/$ZERO_OID/g'

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 'jc/fix-diff-files-unmerged'</title>
<updated>2011-05-06T17:52:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-06T17:52:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22dbeee715e4c9fae3e3fdc1f3a2c4a6ec90e593'/>
<id>urn:sha1:22dbeee715e4c9fae3e3fdc1f3a2c4a6ec90e593</id>
<content type='text'>
* jc/fix-diff-files-unmerged:
  diff-files: show unmerged entries correctly
  diff: remove often unused parameters from diff_unmerge()
  diff.c: return filepair from diff_unmerge()
  test: use $_z40 from test-lib
</content>
</entry>
<entry>
<title>test: use $_z40 from test-lib</title>
<updated>2011-04-24T05:34:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-24T05:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3749fde561ad495dea74b0d3a13bba571068396d'/>
<id>urn:sha1:3749fde561ad495dea74b0d3a13bba571068396d</id>
<content type='text'>
There is no need to duplicate the definition of $_z40 and $_x40 that
test-lib.sh supplies the test scripts.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4002 (diff-basic): use test_might_fail for commands that might fail</title>
<updated>2010-10-06T20:26:11Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2010-10-03T20:00:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b62b3436ffa6acc27a431f29fb25aa08eb441940'/>
<id>urn:sha1:b62b3436ffa6acc27a431f29fb25aa08eb441940</id>
<content type='text'>
Also replace '|| return 1' by '&amp;&amp;' to allow chain of operations to be
checked for proper return status, and modify the update-index command
as suggested by Jonathan Nieder to not exit early but try to make sure
files that match the work tree are marked as matching.

Acked-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: use "test_cmp", not "diff", when verifying the result</title>
<updated>2010-05-31T23:59:27Z</updated>
<author>
<name>Gary V. Vaughan</name>
<email>git@mlists.thewrittenword.com</email>
</author>
<published>2010-05-14T09:31:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4fdf71be1ca3a817851a14f91b75e7d30f885a48'/>
<id>urn:sha1:4fdf71be1ca3a817851a14f91b75e7d30f885a48</id>
<content type='text'>
In tests, call test_cmp rather than raw diff where possible (i.e. if
the output does not go to a pipe), to allow the use of, say, 'cmp'
when the default 'diff -u' is not compatible with a vendor diff.

When that is not possible, use $DIFF, as set in GIT-BUILD-OPTIONS.

Signed-off-by: Gary V. Vaughan &lt;gary@thewrittenword.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Test that diff can read from stdin</title>
<updated>2009-02-20T08:02:40Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T11:13:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=85569d7498f3933d96a7604512f8832c73127067'/>
<id>urn:sha1:85569d7498f3933d96a7604512f8832c73127067</id>
<content type='text'>
Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'kh/diff-tree'</title>
<updated>2008-08-21T06:41:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-21T06:41:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22c09307bf0dc9999920763d94c95086e3a55642'/>
<id>urn:sha1:22c09307bf0dc9999920763d94c95086e3a55642</id>
<content type='text'>
* kh/diff-tree:
  Add test for diff-tree --stdin with two trees
  Teach git diff-tree --stdin to diff trees
  diff-tree: Note that the commit ID is printed with --stdin
  Refactoring: Split up diff_tree_stdin
</content>
</entry>
<entry>
<title>tests: use $TEST_DIRECTORY to refer to the t/ directory</title>
<updated>2008-08-17T07:41:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-08T09:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bfdbee98109c5ad2dbbc392e7eed1ae688acc039'/>
<id>urn:sha1:bfdbee98109c5ad2dbbc392e7eed1ae688acc039</id>
<content type='text'>
Many test scripts assumed that they will start in a 'trash' subdirectory
that is a single level down from the t/ directory, and referred to their
test vector files by asking for files like "../t9999/expect".  This will
break if we move the 'trash' subdirectory elsewhere.

To solve this, we earlier introduced "$TEST_DIRECTORY" so that they can
refer to t/ directory reliably.  This finally makes all the tests use
it to refer to the outside environment.

With this patch, and a one-liner not included here (because it would
contradict with what Dscho really wants to do):

| diff --git a/t/test-lib.sh b/t/test-lib.sh
| index 70ea7e0..60e69e4 100644
| --- a/t/test-lib.sh
| +++ b/t/test-lib.sh
| @@ -485,7 +485,7 @@ fi
|  . ../GIT-BUILD-OPTIONS
|
|  # Test repository
| -test="trash directory"
| +test="trash directory/another level/yet another"
|  rm -fr "$test" || {
|         trap - exit
|         echo &gt;&amp;5 "FATAL: Cannot prepare test area"

all the tests still pass, but we would want extra sets of eyeballs on this
type of change to really make sure.

[jc: with help from Stephan Beyer on http-push tests I do not run myself;
 credits for locating silly quoting errors go to Olivier Marin.]

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add test for diff-tree --stdin with two trees</title>
<updated>2008-08-11T08:35:47Z</updated>
<author>
<name>Karl Hasselström</name>
<email>kha@treskal.com</email>
</author>
<published>2008-08-10T16:13:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5bf707cde14f60b7a066bdab5dbdefaec1a1d0a9'/>
<id>urn:sha1:5bf707cde14f60b7a066bdab5dbdefaec1a1d0a9</id>
<content type='text'>
Signed-off-by: Karl Hasselström &lt;kha@treskal.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
