<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-06-16T17:08:59Z</updated>
<entry>
<title>format-patch: Add a signature option (--signature)</title>
<updated>2010-06-16T17:08:59Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2010-06-16T05:59:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6622d9c7103525bb8673f93df4104ab2a46cb174'/>
<id>urn:sha1:6622d9c7103525bb8673f93df4104ab2a46cb174</id>
<content type='text'>
By default, git uses the version string as the signature for all
patches output by format-patch. Many employers (mine included)
require the use of a signature on all outgoing mails. In a
format-patch | send-email workflow there isn't an easy way to modify
the signature without breaking the pipe and manually replacing the
version string with the signature required. Instead of doing all that
work, add an option (--signature) and a config variable
(format.signature) to replace the default git version signature when
formatting patches.

This does modify the original behavior of format-patch a bit. First
off the version string is now placed in the cover letter by default.
Secondly, once the configuration variable format.signature is added
to the .config file there is no way to revert back to the default
git version signature. Instead, specifying the --no-signature option
will remove the signature from the patches entirely.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2010-03-30T04:29:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-03-30T04:29:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=87b3c0117a340df61bdbac6794611c74696bd42a'/>
<id>urn:sha1:87b3c0117a340df61bdbac6794611c74696bd42a</id>
<content type='text'>
* maint:
  format-patch: Squelch 'fatal: Not a range." error
</content>
</entry>
<entry>
<title>format-patch: Squelch 'fatal: Not a range." error</title>
<updated>2010-03-30T04:22:37Z</updated>
<author>
<name>Kevin Ballard</name>
<email>kevin@sb.org</email>
</author>
<published>2010-03-30T02:46:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=657ab61efa918f46f1b412613643d1a1bbed2194'/>
<id>urn:sha1:657ab61efa918f46f1b412613643d1a1bbed2194</id>
<content type='text'>
Don't output an error on `git format-patch --ignore-if-in-upstream HEAD`.
This matches the behavior of `git format-patch HEAD`.

Signed-off-by: Kevin Ballard &lt;kevin@sb.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: add --no-cc, --no-to, and --no-add-headers</title>
<updated>2010-03-08T23:55:41Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2010-03-07T22:46:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c42600346bb6c3427df7ea1c5a33d723ec02d731'/>
<id>urn:sha1:c42600346bb6c3427df7ea1c5a33d723ec02d731</id>
<content type='text'>
These new options allow users to override their config settings for
format.cc, format.to and format.headers respectively. These options
only make git ignore the config settings and any previous command line
options, so you'll still have to add more command line options to add
extra headers. For example,

	$ cat .git/config
	[format]
		to = Someone &lt;someone@out.there&gt;
	$ git format-patch -1 --no-to --to="Someone Else &lt;else@out.there&gt;"

would format a patch addressed to "Someone Else" and not "Someone".

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Add 'git format-patch --to=' option and 'format.to' configuration variable.</title>
<updated>2010-03-07T03:57:44Z</updated>
<author>
<name>Steven Drake</name>
<email>sdrake@xnet.co.nz</email>
</author>
<published>2010-02-16T23:39:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae6c098f158dd306462024c5cb137b8f7f65cfbd'/>
<id>urn:sha1:ae6c098f158dd306462024c5cb137b8f7f65cfbd</id>
<content type='text'>
Has the same functionality as the '--cc' option and 'format.cc'
configuration variable but for the "To:" email header.  Half of the code to
support this was already there.

With email the To: header usually more important than the Cc: header.

[jc: tests are by Stephen Boyd]

Signed-off-by: Steven Drake &lt;sdrake@xnet.co.nz&gt;
Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fix portability issues with $ in double quotes</title>
<updated>2010-01-26T23:16:54Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2010-01-26T23:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9524cf29930b4f91d68ad1384d7f984393a54c15'/>
<id>urn:sha1:9524cf29930b4f91d68ad1384d7f984393a54c15</id>
<content type='text'>
Using a dollar sign in double quotes isn't portable. Escape them with
a backslash or replace the double quotes with single quotes.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'fc/maint-format-patch-pathspec-dashes'</title>
<updated>2009-11-30T22:46:09Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-30T22:46:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9eba92f684ad9fb1b2e9b99f3f406048fece266d'/>
<id>urn:sha1:9eba92f684ad9fb1b2e9b99f3f406048fece266d</id>
<content type='text'>
Conflicts:
	t/t4014-format-patch.sh
</content>
</entry>
<entry>
<title>format-patch: add test for parsing of "--"</title>
<updated>2009-11-27T05:23:55Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2009-11-26T19:12:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7e93d3b9e58a359a1073460e8f2cb3fef0368bd7'/>
<id>urn:sha1:7e93d3b9e58a359a1073460e8f2cb3fef0368bd7</id>
<content type='text'>
Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t4014-format-patch: do not assume 'test' is available as non-builtin</title>
<updated>2009-11-23T10:55:59Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2009-11-23T09:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4fa80cf0e07daa72361cd193fd88927be710c2e6'/>
<id>urn:sha1:4fa80cf0e07daa72361cd193fd88927be710c2e6</id>
<content type='text'>
One test case used 'xargs test', which assumes that 'test' is available
as external program. At least on MinGW it is not.

Moreover, 'git format-patch' was invoked in a pipeline, but not as the
last command. Rewrite the test case to catch breakage in 'git format-patch'
as well.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: Always generate a patch</title>
<updated>2009-11-10T19:37:47Z</updated>
<author>
<name>Björn Gustavsson</name>
<email>bgustavsson@gmail.com</email>
</author>
<published>2009-11-07T09:51:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02bc5b03f54b51f8b45c81cce74284ced602e6de'/>
<id>urn:sha1:02bc5b03f54b51f8b45c81cce74284ced602e6de</id>
<content type='text'>
Jeff King recently reinstated -p to suppress the default diffstat
(as -p used to work before 68daa64, about 14 months ago).

However, -p is also needed in combination with certain options
(e.g. --stat or --numstat) in order to produce any patch at all.
The documentation does not mention this.

Since the purpose of format-patch is to produce a patch that
can be emailed, it does not make sense that certain combination
of options will suppress the generation of the patch itself.

Therefore:

* Update 'git format-patch' to always generate a patch.

* Since the --name-only, --name-status, and --check suppresses
  the generation of the patch, disallow those options,
  and remove the description of them in the documentation.

* Remove the reference to -p in the description of -U.

* Remove the descriptions of the options that are synonyms for -p
  plus another option (--patch-with-raw and --patch-with-stat).

* While at it, slightly tweak the description of -p itself
  to say that it generates "plain patches", so that you can
  think of -p as "plain patch" as an mnemonic aid.

Signed-off-by: Björn Gustavsson &lt;bgustavsson@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
