<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4012-diff-binary.sh, branch v2.32.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.32.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.32.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2021-02-11T07:48:27Z</updated>
<entry>
<title>tests: remove most uses of test_i18ncmp</title>
<updated>2021-02-11T07:48:27Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-02-11T01:53:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1108cea7f8ee38a8507c1cc68d1fafe2eb31d623'/>
<id>urn:sha1:1108cea7f8ee38a8507c1cc68d1fafe2eb31d623</id>
<content type='text'>
As a follow-up to d162b25f956 (tests: remove support for
GIT_TEST_GETTEXT_POISON, 2021-01-20) remove most uses of test_i18ncmp
via a simple s/test_i18ncmp/test_cmp/g search-replacement.

I'm leaving t6300-for-each-ref.sh out due to a conflict with in-flight
changes between "master" and "seen", as well as the prerequisite
itself due to other changes between "master" and "next/seen" which add
new test_i18ncmp uses.

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>tests: remove most uses of C_LOCALE_OUTPUT</title>
<updated>2021-02-11T07:48:26Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2021-02-11T01:53:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a926c4b904bdc339568c2898af955cdc61b31542'/>
<id>urn:sha1:a926c4b904bdc339568c2898af955cdc61b31542</id>
<content type='text'>
As a follow-up to d162b25f956 (tests: remove support for
GIT_TEST_GETTEXT_POISON, 2021-01-20) remove those uses of the now
always true C_LOCALE_OUTPUT prerequisite from those tests which
declare it as an argument to test_expect_{success,failure}.

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: use test_might_fail() instead of manipulating exit code manually</title>
<updated>2018-07-03T19:38:04Z</updated>
<author>
<name>Eric Sunshine</name>
<email>sunshine@sunshineco.com</email>
</author>
<published>2018-07-02T00:23:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=83279748594cf1c7a38ebf518cd6b63cd3d8de37'/>
<id>urn:sha1:83279748594cf1c7a38ebf518cd6b63cd3d8de37</id>
<content type='text'>
These tests manually coerce the exit code of invoked commands to
"success" when they don't care if the command succeeds or fails since
failure of those commands should not cause the test to fail overall.
In doing so, they intentionally break the &amp;&amp;-chain. Modernize by
replacing manual exit code management with test_might_fail() and a
normal &amp;&amp;-chain.

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>builtin/apply: make parse_single_patch() return -1 on error</title>
<updated>2016-08-11T19:41:46Z</updated>
<author>
<name>Christian Couder</name>
<email>christian.couder@gmail.com</email>
</author>
<published>2016-08-08T21:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c'/>
<id>urn:sha1:dae197f753c8b3ccdc9c97cfc04f0dbd99a5cc3c</id>
<content type='text'>
To libify `git apply` functionality we have to signal errors to the
caller instead of die()ing.

To do that in a compatible manner with the rest of the error handling
in builtin/apply.c, parse_single_patch() should return a negative
integer instead of calling die().

Let's do that by using error() and let's adjust the related test
cases accordingly.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4012-diff-binary.sh: use the $( ... ) construct for command substitution</title>
<updated>2014-04-30T18:08:05Z</updated>
<author>
<name>Elia Pinto</name>
<email>gitter.spiros@gmail.com</email>
</author>
<published>2014-04-30T16:22:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6ce6f4c7a8bcb2a77e664d0dfc42ee9c2d164d0'/>
<id>urn:sha1:e6ce6f4c7a8bcb2a77e664d0dfc42ee9c2d164d0</id>
<content type='text'>
The Git CodingGuidelines prefer the $(...) construct for command
substitution instead of using the backquotes `...`.

The backquoted form is the traditional method for command
substitution, and is supported by POSIX.  However, all but the
simplest uses become complicated quickly.  In particular, embedded
command substitutions and/or the use of double quotes require
careful escaping with the backslash character.

The patch was generated by:

for _f in $(find . -name "*.sh")
do
   sed -i 's@`\(.*\)`@$(\1)@g' ${_f}
done

and then carefully proof-read.

Signed-off-by: Elia Pinto &lt;gitter.spiros@gmail.com&gt;
Reviewed-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix tests under GETTEXT_POISON on git-apply</title>
<updated>2012-08-27T16:26:30Z</updated>
<author>
<name>Jiang Xin</name>
<email>worldhello.net@gmail.com</email>
</author>
<published>2012-08-27T05:36:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76638d90e88374f8b1396e4fce75a424260ba6da'/>
<id>urn:sha1:76638d90e88374f8b1396e4fce75a424260ba6da</id>
<content type='text'>
Use the i18n-specific test functions in test scripts for git-apply.
This issue was was introduced in the following commits:

    de373 i18n: apply: mark parseopt strings for translation
    3638e i18n: apply: mark strings for translation

and been broken under GETTEXT_POISON=YesPlease since.

Signed-off-by: Jiang Xin &lt;worldhello.net@gmail.com&gt;
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>t4012: Use test_must_fail instead of if-else</title>
<updated>2012-07-16T20:51:25Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-16T20:47:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7c0a2503fef1c8746dd4ce074de51fd6b215aa5'/>
<id>urn:sha1:c7c0a2503fef1c8746dd4ce074de51fd6b215aa5</id>
<content type='text'>
Make the code less bulky and easier to read. Also do not overlook
failures like e.g. git failing because of unexpected signals.

Signed-off-by: Alexander Strasser &lt;eclipse7@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4012: use 'printf' instead of 'dd' to generate a binary file</title>
<updated>2012-07-16T20:51:10Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2012-07-16T20:46:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66fd93ee060a1e7f831316f6c81e57f43c5578ba'/>
<id>urn:sha1:66fd93ee060a1e7f831316f6c81e57f43c5578ba</id>
<content type='text'>
For some reason, 'echo X | dd bs=1k seek=1' creates a file with 2050 bytes
on Windows instead of the expected 1026 bytes, so that a test fails. Since
the actual contents of the file are irrelevant as long as there is at
least one zero byte so that the diff machinery recognizes it as binary,
use printf to generate it.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Alexander Strasser &lt;eclipse7@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4012: Re-indent test snippets</title>
<updated>2012-07-16T20:50:50Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-16T20:45:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3e9cdf7fca90acd6efd380a2ed0d6801f33a46b7'/>
<id>urn:sha1:3e9cdf7fca90acd6efd380a2ed0d6801f33a46b7</id>
<content type='text'>
Most one-level indents were 1 HT (horizontal tab) followed by 1 SP.
Remove the SP.

Signed-off-by: Alexander Strasser &lt;eclipse7@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4012: Make --shortstat test more robust</title>
<updated>2012-07-16T20:50:28Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-16T20:45:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=216f25f65fe20a93d4c8264b335718a8888d007e'/>
<id>urn:sha1:216f25f65fe20a93d4c8264b335718a8888d007e</id>
<content type='text'>
The --shortstat test depends on the same scenario as the --stat
test. Use the part of the same expected result for the --stat test
to avoid duplicating it manually.

Signed-off-by: Alexander Strasser &lt;eclipse7@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
