<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7502-commit.sh, branch v2.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.9.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-04-06T18:39:04Z</updated>
<entry>
<title>Merge branch 'pb/t7502-drop-dup'</title>
<updated>2016-04-06T18:39:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-04-06T18:39:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=235bdc8c895fa2307055bfb8ea67632b4cb79cc7'/>
<id>urn:sha1:235bdc8c895fa2307055bfb8ea67632b4cb79cc7</id>
<content type='text'>
Code clean-up.

* pb/t7502-drop-dup:
  t/t7502 : drop duplicate test
</content>
</entry>
<entry>
<title>t/t7502 : drop duplicate test</title>
<updated>2016-03-11T20:42:26Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2016-03-11T00:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dde7891094418c7bb5135bd6332d5504ad7f20d0'/>
<id>urn:sha1:dde7891094418c7bb5135bd6332d5504ad7f20d0</id>
<content type='text'>
This extra test was introduced erroneously by
f9c0181 (t7502: test commit.status, --status and
--no-status, 2010-01-13)

Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sg/commit-cleanup-scissors' into maint</title>
<updated>2015-08-03T17:41:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-08-03T17:41:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a94594dcf7522652363773c06e1ff617914dffe8'/>
<id>urn:sha1:a94594dcf7522652363773c06e1ff617914dffe8</id>
<content type='text'>
"git commit --cleanup=scissors" was not careful enough to protect
against getting fooled by a line that looked like scissors.

* sg/commit-cleanup-scissors:
  commit: cope with scissors lines in commit message
</content>
</entry>
<entry>
<title>Merge branch 'sg/commit-cleanup-scissors'</title>
<updated>2015-06-24T19:21:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-06-24T19:21:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=07528be1018b72e463404624b8752ead7eb0eb8d'/>
<id>urn:sha1:07528be1018b72e463404624b8752ead7eb0eb8d</id>
<content type='text'>
"git commit --cleanup=scissors" was not careful enough to protect
against getting fooled by a line that looked like scissors.

* sg/commit-cleanup-scissors:
  commit: cope with scissors lines in commit message
</content>
</entry>
<entry>
<title>commit: cope with scissors lines in commit message</title>
<updated>2015-06-09T19:09:44Z</updated>
<author>
<name>SZEDER Gábor</name>
<email>szeder@ira.uka.de</email>
</author>
<published>2015-06-09T00:28:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fbfa0973faf47e475854a8919097d5db29acf536'/>
<id>urn:sha1:fbfa0973faf47e475854a8919097d5db29acf536</id>
<content type='text'>
The diff and submodule shortlog appended to the commit message template
by 'git commit --verbose' are not stripped when the commit message
contains an indented scissors line.

When cleaning up a commit message with 'git commit --verbose' or
'--cleanup=scissors' the code is careful and triggers only on a pure
scissors line, i.e. a line containing nothing but a comment character, a
space, and the scissors cut.  This is good, because people can embed
scissors lines in the commit message while using 'git commit --verbose',
and the text they write after their indented scissors line doesn't get
deleted.

While doing so, however, the cleanup function only looks at the first
line matching the scissors pattern and if it doesn't start at the
beginning of the line, then the function just returns without performing
any cleanup.  This is wrong, because a "real" scissors line added by
'git commit --verbose' might follow, and in that case the diff and
submodule shortlog get included in the commit message.

Fix this by changing the scissors pattern to match only at the beginning
of the line, yet be careful to catch scissors on the first line as well.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: SZEDER Gábor &lt;szeder@ira.uka.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502-commit.sh: fix a broken and-chain</title>
<updated>2015-04-28T22:55:51Z</updated>
<author>
<name>Ramsay Jones</name>
<email>ramsay@ramsay1.demon.co.uk</email>
</author>
<published>2015-04-28T12:04:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f84df81f654aeb0ac4582e0b3be162cba6ea5232'/>
<id>urn:sha1:f84df81f654aeb0ac4582e0b3be162cba6ea5232</id>
<content type='text'>
Signed-off-by: Ramsay Jones &lt;ramsay@ramsay1.demon.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/status-auto-comment-char'</title>
<updated>2014-06-06T18:36:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-06-06T18:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e2600dd6a2acf8d2e9c0923184ca2335b861138'/>
<id>urn:sha1:1e2600dd6a2acf8d2e9c0923184ca2335b861138</id>
<content type='text'>
* nd/status-auto-comment-char:
  commit: allow core.commentChar=auto for character auto selection
  config: be strict on core.commentChar
</content>
</entry>
<entry>
<title>commit: allow core.commentChar=auto for character auto selection</title>
<updated>2014-05-19T20:37:25Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-05-17T01:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=84c9dc2c5a2d34351a06554af32501d4f99990e9'/>
<id>urn:sha1:84c9dc2c5a2d34351a06554af32501d4f99990e9</id>
<content type='text'>
When core.commentChar is "auto", the comment char starts with '#' as
in default but if it's already in the prepared message, find another
char in a small subset. This should stop surprises because git strips
some lines unexpectedly.

Note that git is not smart enough to recognize '#' as the comment char
in custom templates and convert it if the final comment char is
different. It thinks '#' lines in custom templates as part of the
commit message. So don't use this with custom templates.

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>commit: print "Date" line when the user has set date</title>
<updated>2014-05-02T21:14:21Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-05-02T01:10:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7242b8c9e4b3c57a07c2a76d0337389605aadcc'/>
<id>urn:sha1:b7242b8c9e4b3c57a07c2a76d0337389605aadcc</id>
<content type='text'>
When we make a commit and the author is not the same as the
committer (e.g., because you used "-c $commit" or
"--author=$somebody"), we print the author's name and email
in both the commit-message template and as part of the
commit summary. This is a safety check to give the user a
chance to confirm that we are doing what they expect.

This patch brings the same safety for the "date" field,
which may be set by "-c" or by using "--date".  Note that we
explicitly do not set it for $GIT_AUTHOR_DATE, as it is
probably not of interest when "git commit" is being fed its
parameters by a script.

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>commit: add --cleanup=scissors</title>
<updated>2014-02-25T17:35:20Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-02-17T12:15:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75df1f434f8cfdac1c8eeacae259ab375c01385b'/>
<id>urn:sha1:75df1f434f8cfdac1c8eeacae259ab375c01385b</id>
<content type='text'>
Since 1a72cfd (commit -v: strip diffs and submodule shortlogs from the
commit message - 2013-12-05) we have a less fragile way to cut out
"git status" at the end of a commit message but it's only enabled for
stripping submodule shortlogs.

Add new cleanup option that reuses the same mechanism for the entire
"git status" without accidentally removing lines starting with '#'.

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