<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.24.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.24.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.24.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-10-24T04:34:02Z</updated>
<entry>
<title>Merge branch 'bw/format-patch-o-create-leading-dirs'</title>
<updated>2019-10-24T04:34:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-10-24T04:34:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c555caab7a303109d6c712d757bc4621a3ee0bbd'/>
<id>urn:sha1:c555caab7a303109d6c712d757bc4621a3ee0bbd</id>
<content type='text'>
Test update.

* bw/format-patch-o-create-leading-dirs:
  t4014: make output-directory tests self-contained
</content>
</entry>
<entry>
<title>t4014: make output-directory tests self-contained</title>
<updated>2019-10-23T02:08:58Z</updated>
<author>
<name>Bert Wesarg</name>
<email>bert.wesarg@googlemail.com</email>
</author>
<published>2019-10-21T13:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=19c29e538e48ed50286339b0fdd5e62111a724db'/>
<id>urn:sha1:19c29e538e48ed50286339b0fdd5e62111a724db</id>
<content type='text'>
As noted by Gábor in [1], the new tests in edefc31873 ("format-patch:
create leading components of output directory", 2019-10-11) cannot be
run independently. Fix this.

[1] https://public-inbox.org/git/20191011144650.GM29845@szeder.dev/

Signed-off-by: Bert Wesarg &lt;bert.wesarg@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bw/format-patch-o-create-leading-dirs'</title>
<updated>2019-10-18T02:40:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-10-18T02:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1afbb063ff86e40caeaee31146f62c7a3c10c57'/>
<id>urn:sha1:f1afbb063ff86e40caeaee31146f62c7a3c10c57</id>
<content type='text'>
"git format-patch -o &lt;outdir&gt;" did an equivalent of "mkdir &lt;outdir&gt;"
not "mkdir -p &lt;outdir&gt;", which is being corrected.

* bw/format-patch-o-create-leading-dirs:
  format-patch: create leading components of output directory
</content>
</entry>
<entry>
<title>format-patch: create leading components of output directory</title>
<updated>2019-10-12T02:51:20Z</updated>
<author>
<name>Bert Wesarg</name>
<email>bert.wesarg@googlemail.com</email>
</author>
<published>2019-10-11T08:36:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=edefc318731f69c3e5354ead9f7505e789562375'/>
<id>urn:sha1:edefc318731f69c3e5354ead9f7505e789562375</id>
<content type='text'>
'git format-patch -o &lt;outdir&gt;' did an equivalent of 'mkdir &lt;outdir&gt;'
not 'mkdir -p &lt;outdir&gt;', which is being corrected.

Avoid the usage of 'adjust_shared_perm' on the leading directories which
may have security implications. Achieved by temporarily disabling of
'config.sharedRepository' like 'git init' does.

Signed-off-by: Bert Wesarg &lt;bert.wesarg@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: treat rev-list output as the expected value</title>
<updated>2019-10-09T01:44:40Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-10-08T09:14:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=756fb0dedb72e8eec691d216198ccc23102d7072'/>
<id>urn:sha1:756fb0dedb72e8eec691d216198ccc23102d7072</id>
<content type='text'>
In 6bd26f58ea (t4014: use test_line_count() where possible, 2019-08-27),
we converted many test cases to take advantage of the test_line_count()
function. In one conversion, we inverted the expected and actual value
as tested by test_line_count(). Although functionally correct, if
format-patch ever produced incorrect output, the debugging output would
be a bunch of hashes which would be difficult to debug.

Invert the expected and actual values provided to test_line_count() so
that if format-patch produces incorrect output, the debugging output
will be a list of human-readable files instead.

Helped-by: SZEDER GÃ¡bor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: stop losing return codes of git commands</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=854b5cb46af2281f54038804121a89381169f420'/>
<id>urn:sha1:854b5cb46af2281f54038804121a89381169f420</id>
<content type='text'>
Currently, there are two ways where the return codes of Git commands are
lost. The first way is when a command is in the upstream of a pipe. In a
pipe, only the return code of the last command is used. Thus, all other
commands will have their return codes masked. Rewrite pipes so that
there are no Git commands upstream.

The other way is when a command is in a non-assignment subshell. The
return code will be lost in favour of the surrounding command's. Rewrite
instances of this such that Git commands output to a file and
surrounding commands only call subshells with non-Git commands.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: remove confusing pipe in check_threading()</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd2b6b6860e5955323057b7f97f627f686a3b0d9'/>
<id>urn:sha1:dd2b6b6860e5955323057b7f97f627f686a3b0d9</id>
<content type='text'>
In check_threading(), there was a Git command in the upstream of a pipe.
In order to not lose its status code, it was saved into a file. However,
this may be confusing so rewrite to redirect IO to file. This allows us
to directly use the conventional &amp;&amp;-chain.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: use test_line_count() where possible</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bd26f58ea27914547ff65f367a3b60f77a4d183'/>
<id>urn:sha1:6bd26f58ea27914547ff65f367a3b60f77a4d183</id>
<content type='text'>
Convert all instances of `cnt=$(... | wc -l) &amp;&amp; test $cnt = N` into uses
of `test_line_count()`.

While we're at it, convert one instance of a Git command upstream of a
pipe into two commands. This prevents a failure of a Git command from
being masked since only the return code of the last member of the pipe
is shown.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: let sed open its own files</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c6ec6dadba52a5186739fea4cf8fa2e26feb9e70'/>
<id>urn:sha1:c6ec6dadba52a5186739fea4cf8fa2e26feb9e70</id>
<content type='text'>
In some cases, we were using a redirection operator to feed input into
sed. However, since sed is capable of opening its own files, make sed
open its own files instead of redirecting input into it.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014: drop redirections to /dev/null</title>
<updated>2019-09-05T19:58:52Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-08-27T04:05:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2e2fa8f60d2900bb676fa052e65bcae1f2a8ddb'/>
<id>urn:sha1:f2e2fa8f60d2900bb676fa052e65bcae1f2a8ddb</id>
<content type='text'>
Since output is silenced when running without `-v` and debugging output
is useful with `-v`, remove redirections to /dev/null as it is not
useful.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
