<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4012-diff-binary.sh, branch v2.4.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.9</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-04-30T18:08:05Z</updated>
<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>
<entry>
<title>t4012: Break up pipe into serial redirections</title>
<updated>2012-07-16T20:49:58Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-16T20:44:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4220afd7238c94f33bde55cf3fd6c84275eebe9a'/>
<id>urn:sha1:4220afd7238c94f33bde55cf3fd6c84275eebe9a</id>
<content type='text'>
Do not hide possible git errors by masking its process
exit status.

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: Actually quote the sed script</title>
<updated>2012-07-16T20:49:29Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-16T20:43:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4a2b716e220f0f5369c386d7257b87399d424a3f'/>
<id>urn:sha1:4a2b716e220f0f5369c386d7257b87399d424a3f</id>
<content type='text'>
The nested quoting is not needed in this cases, thus the previous
version did work just fine. Nevertheless the usage is misleading,
so just achieve nested quoting by using double quotes instead. Lower
the probability of breakage in the future and make the code easier
to read.

NOTE: Just dropping the single quotes around the sed arguments would
      have also been possible.

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: Unquote git command fragment in test title</title>
<updated>2012-07-11T22:36:33Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-11T22:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb84e67c82af3a6678f193159f56d2244c5529dc'/>
<id>urn:sha1:bb84e67c82af3a6678f193159f56d2244c5529dc</id>
<content type='text'>
The command fragments are quoted nowhere else in title texts of
this file, thus make this one consistent with all other titles.

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: modernize style for quoting</title>
<updated>2012-07-11T22:36:14Z</updated>
<author>
<name>Alexander Strasser</name>
<email>eclipse7@gmx.net</email>
</author>
<published>2012-07-11T22:12:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1358bb496fb182d8047a039f09c3859364cea2b4'/>
<id>urn:sha1:1358bb496fb182d8047a039f09c3859364cea2b4</id>
<content type='text'>
This quoting style is used by all newly added test code.

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