<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t4014-format-patch.sh, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-03-28T06:49:50Z</updated>
<entry>
<title>format-patch: add arbitrary email headers</title>
<updated>2009-03-28T06:49:50Z</updated>
<author>
<name>Michael Hendricks</name>
<email>michael@ndrix.org</email>
</author>
<published>2009-03-26T16:51:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d7d9c2d04962b5aec34ec891d82dd74262306c56'/>
<id>urn:sha1:d7d9c2d04962b5aec34ec891d82dd74262306c56</id>
<content type='text'>
format-patch supports the format.headers configuration for adding
arbitrary email headers to the patches it outputs.  This patch adds
support for an --add-header argument which makes the same feature
available from the command line.  This is useful when the content of
custom email headers must change from branch to branch.

This patch has been sponsored by Grant Street Group

Signed-off-by: Michael Hendricks &lt;michael@ndrix.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>test-lib: Introduce test_chmod and use it instead of update-index --chmod</title>
<updated>2009-03-19T20:47:14Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2009-02-28T20:12:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f553918a8482ea792e8cd4d5d2c75fe60f68aae'/>
<id>urn:sha1:1f553918a8482ea792e8cd4d5d2c75fe60f68aae</id>
<content type='text'>
This function replaces sequences of 'chmod +x' and 'git update-index
--chmod=+x' in the test suite, whose purpose is to help filesystems
that need core.filemode=false. Two places where only 'chmod +x' was used
we also use this new function.

The function calls 'git update-index --chmod' without checking
core.filemode (unlike some of the call sites did). We do this because the
call sites *expect* that the executable bit ends up in the index (ie. it
is not the purpose of the call sites to *test* whether git treats
'chmod +x' and 'update-index --chmod=+x' correctly). Therefore, on
filesystems with core.filemode=true the 'git update-index --chmod' is a
no-op.

The function uses --add with update-index to help one call site in
t6031-merge-recursive. It makes no difference for the other callers.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
</content>
</entry>
<entry>
<title>format-patch: support deep threading</title>
<updated>2009-02-22T04:26:10Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T21:26:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=30984ed2e92651962c6b8bdacf1f84da75d1da95'/>
<id>urn:sha1:30984ed2e92651962c6b8bdacf1f84da75d1da95</id>
<content type='text'>
For deep threading mode, i.e., the mode that gives a thread structured
like

  + [PATCH 0/n] Cover letter
   `-+ [PATCH 1/n] First patch
      `-+ [PATCH 2/n] Second patch
         `-+ ...

we currently have to use 'git send-email --thread' (the default).  On
the other hand, format-patch also has a --thread option which gives
shallow mode, i.e.,

  + [PATCH 0/n] Cover letter
  |-+ [PATCH 1/n] First patch
  |-+ [PATCH 2/n] Second patch
  ...

To reduce the confusion resulting from having two indentically named
features in different tools giving different results, let format-patch
take an optional argument '--thread=deep' that gives the same output
as 'send-mail --thread'.  With no argument, or 'shallow', behave as
before.  Also add a configuration variable format.thread with the same
semantics.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: thread as reply to cover letter even with in-reply-to</title>
<updated>2009-02-22T04:26:10Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T21:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2175c10d5ad2769936f5bf5bcca5ea32715a7307'/>
<id>urn:sha1:2175c10d5ad2769936f5bf5bcca5ea32715a7307</id>
<content type='text'>
Currently, format-patch --thread --cover-letter --in-reply-to $parent
makes all mails, including the cover letter, a reply to $parent.
However, we would want the reader to consider the cover letter above
all the patches.

This changes the semantics so that only the cover letter is a reply to
$parent, while all the patches are formatted as replies to the cover
letter.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: threading test reactivation</title>
<updated>2009-02-20T05:41:57Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T21:26:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=484cf6c3f1169786c45ccda54c9961ef66465c03'/>
<id>urn:sha1:484cf6c3f1169786c45ccda54c9961ef66465c03</id>
<content type='text'>
t4014 tests format-patch --thread since 7d812145, but the tests were
ineffective right from the start at least for bash and dash.  The
loops of the form

  for ...; do something || break; done

introduced by 7d812145 and 5d02294 always exit with status 0, even if
'something' failed, because 'break' returns 0 unless there was no loop
to break.

We take a rather different approach that uses an admittedly heinous
inline Perl script to mangle all interesting information into a format
that is invariant between runs.  We can then test the full patch
sequence in one go (with --stdout), doing away with the loop problem.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/maint-format-patch-o-relative'</title>
<updated>2009-01-22T00:50:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-22T00:50:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a14f15427bca9af70127f26cd3cb0fcd78c8d36f'/>
<id>urn:sha1:a14f15427bca9af70127f26cd3cb0fcd78c8d36f</id>
<content type='text'>
* jc/maint-format-patch-o-relative:
  Teach format-patch to handle output directory relative to cwd

Conflicts:
	t/t4014-format-patch.sh
</content>
</entry>
<entry>
<title>Teach format-patch to handle output directory relative to cwd</title>
<updated>2009-01-13T01:00:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-12T23:18:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9800a754f931d05c2d26da9c1b188ae2c2b80eb4'/>
<id>urn:sha1:9800a754f931d05c2d26da9c1b188ae2c2b80eb4</id>
<content type='text'>
Without any explicit -o parameter, we correctly avoided putting the
resulting patch output to the toplevel.  We should do the same when
the user gave a relative pathname to be consistent with this case.

Noticed by Cesar Eduardo Barros.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: use default diff format even with patch options</title>
<updated>2008-08-27T00:08:13Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2008-08-25T02:10:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=68daa64df2363f848d818dda9fc414511d9330da'/>
<id>urn:sha1:68daa64df2363f848d818dda9fc414511d9330da</id>
<content type='text'>
Previously, running "git format-patch -U5" would cause the
low-level diff machinery to change the diff output format
from "not specified" to "patch". This meant that
format-patch thought we explicitly specified a diff output
format, and would not use the default format. The resulting
message lacked both the diffstat and the summary, as well as
the separating "---".

Now format-patch explicitly checks for this condition and
uses the default. That means that "git format-patch -p" will
now have the "-p" ignored.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>fix whitespace violations in test scripts</title>
<updated>2008-06-14T18:39:16Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2008-06-14T07:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3b2eb186bb738a374d9325b18710b19ec270e55f'/>
<id>urn:sha1:3b2eb186bb738a374d9325b18710b19ec270e55f</id>
<content type='text'>
These violations are simply wrong, but were never caught
because whitespace policy checking is turned off in the test
scripts.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: do not use implicit "git diff --no-index"</title>
<updated>2008-05-24T07:01:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-05-24T05:28:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3af828634fa5bdbca1b2061a81df8b3fa73b0d34'/>
<id>urn:sha1:3af828634fa5bdbca1b2061a81df8b3fa73b0d34</id>
<content type='text'>
As a general principle, we should not use "git diff" to validate the
results of what git command that is being tested has done.  We would not
know if we are testing the command in question, or locating a bug in the
cute hack of "git diff --no-index".

Rather use test_cmp for that purpose.

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