<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v2.26.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-12-25T19:21:58Z</updated>
<entry>
<title>Merge branch 'dl/format-patch-notes-config-fixup'</title>
<updated>2019-12-25T19:21:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-25T19:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=17066bea38d14a9f9a7a174f40cd9dc1fd720210'/>
<id>urn:sha1:17066bea38d14a9f9a7a174f40cd9dc1fd720210</id>
<content type='text'>
"git format-patch" can take a set of configured format.notes values
to specify which notes refs to use in the log message part of the
output.  The behaviour of this was not consistent with multiple
--notes command line options, which has been corrected.

* dl/format-patch-notes-config-fixup:
  notes.h: fix typos in comment
  notes: break set_display_notes() into smaller functions
  config/format.txt: clarify behavior of multiple format.notes
  format-patch: move git_config() before repo_init_revisions()
  format-patch: use --notes behavior for format.notes
  notes: extract logic into set_display_notes()
  notes: create init_display_notes() helper
  notes: rename to load_display_notes()
</content>
</entry>
<entry>
<title>format-patch: use --notes behavior for format.notes</title>
<updated>2019-12-09T21:37:20Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-12-09T13:10:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8164c961e16834da283cbf5ac5d22313b982a484'/>
<id>urn:sha1:8164c961e16834da283cbf5ac5d22313b982a484</id>
<content type='text'>
When we had multiple `format.notes` config values where we had `&lt;ref1&gt;`,
`false`, `&lt;ref2&gt;` (in that order), then we would print out the notes for
both `&lt;ref1&gt;` and `&lt;ref2&gt;`. This doesn't make sense, however, since we
parse the config in a top-down manner and a `false` should be able to
override previous configurations, just like how `--no-notes` will
override previous `--notes`.

Duplicate the logic that handles the `--[no-]notes[=]` option to
`format.notes` for consistency. As a result, when parsing the config
from top to bottom, `format.notes = true` will behave like `--notes`,
`format.notes = &lt;ref&gt;` will behave like `--notes=&lt;ref&gt;` and
`format.notes = false` will behave like `--no-notes`.

This change isn't strictly backwards compatible but since it is an edge
case where a sane user would not mix notes refs with `false` and this
feature is relatively new (released only in v2.23.0), this change should
be harmless.

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>format-patch: teach --no-base</title>
<updated>2019-12-05T14:06:18Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-12-04T21:25:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=945dc55dda595a3e5449017797cb90599ed9ecb5'/>
<id>urn:sha1:945dc55dda595a3e5449017797cb90599ed9ecb5</id>
<content type='text'>
If `format.useAutoBase = true`, there was no way to override this from
the command-line. Teach the `--no-base` option in format-patch to
override `format.useAutoBase`.

Helped-by: René Scharfe &lt;l.s.r@web.de&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: use test_config()</title>
<updated>2019-12-05T14:06:18Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-12-04T21:25:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=700e006c5d69990fc1167355e9fa7a55e9166581'/>
<id>urn:sha1:700e006c5d69990fc1167355e9fa7a55e9166581</id>
<content type='text'>
Instead of manually unsetting the config after the test case is done,
use test_config() to do it automatically. While we're at it, fix a typo
in a test case name.

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>Merge branch 'dl/format-patch-cover-from-desc'</title>
<updated>2019-11-10T09:02:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-11-10T09:02:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b75ba9bbd13877ff3351e150d3d053baec81f0db'/>
<id>urn:sha1:b75ba9bbd13877ff3351e150d3d053baec81f0db</id>
<content type='text'>
The branch description ("git branch --edit-description") has been
used to fill the body of the cover letters by the format-patch
command; this has been enhanced so that the subject can also be
filled.

* dl/format-patch-cover-from-desc:
  format-patch: teach --cover-from-description option
  format-patch: use enum variables
  format-patch: replace erroneous and condition
</content>
</entry>
<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: teach --cover-from-description option</title>
<updated>2019-10-16T01:26:45Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-10-15T09:06:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bf8e65b30b77308710f14d523782f99a4a23eb55'/>
<id>urn:sha1:bf8e65b30b77308710f14d523782f99a4a23eb55</id>
<content type='text'>
Before, when format-patch generated a cover letter, only the body would
be populated with a branch's description while the subject would be
populated with placeholder text. However, users may want to have the
subject of their cover letter automatically populated in the same way.

Teach format-patch to accept the `--cover-from-description` option and
corresponding `format.coverFromDescription` config, allowing users to
populate different parts of the cover letter (including the subject
now).

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>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>
</feed>
