<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7502-commit.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-21T13:02:46Z</updated>
<entry>
<title>Merge branch 'tc/commit-abbrev-fix'</title>
<updated>2010-06-21T13:02:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-06-21T13:02:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1a5296cb92691c5656bbc6aacaf49ca31b1ee8c0'/>
<id>urn:sha1:1a5296cb92691c5656bbc6aacaf49ca31b1ee8c0</id>
<content type='text'>
* tc/commit-abbrev-fix:
  commit::print_summary(): don't use format_commit_message()
  t7502-commit: add summary output tests for empty and merge commits
  t7502-commit: add tests for summary output
</content>
</entry>
<entry>
<title>commit::print_summary(): don't use format_commit_message()</title>
<updated>2010-06-13T16:38:43Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-06-12T14:15:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a45e1a87adc7cd7ace911049829308ae97b2e914'/>
<id>urn:sha1:a45e1a87adc7cd7ace911049829308ae97b2e914</id>
<content type='text'>
This attempts to fix a regression in git-commit, where non-abbreviated
SHA-1s were printed in the summary.

One possible fix would be to set ctx.abbrev to DEFAULT_ABBREV in the
`if` block, where format_commit_message() is used.

Instead, we do away with the format_commit_message() codeblock
altogether, replacing it with a re-run of log_tree_commit().

We re-run log_tree_commit() with rev.always_show_header set, to force
the invocation of show_log(). The effect of this flag can be seen from
this excerpt from log-tree.c:560, the only area that
rev.always_show_header is checked:

	shown = log_tree_diff(opt, commit, &amp;log);
	if (!shown &amp;&amp; opt-&gt;loginfo &amp;&amp; opt-&gt;always_show_header) {
		log.parent = NULL;
		show_log(opt);
		shown = 1;
	}

We also set rev.use_terminator, so that a newline is appended at the end
of the log message. Note that callers in builtin/log.c that also set
rev.always_show_header don't have to set rev.use_terminator, but still
get a newline, because they are wrapped in a pager.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502-commit: add summary output tests for empty and merge commits</title>
<updated>2010-05-28T22:35:23Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-05-27T15:34:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cee9f2b37bd7c65de5fb507d11b4caac31c29039'/>
<id>urn:sha1:cee9f2b37bd7c65de5fb507d11b4caac31c29039</id>
<content type='text'>
After c197702 (pretty: Respect --abbrev option), non-abbreviated hashes
began to appear, leading to failures for these tests.

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502-commit: add tests for summary output</title>
<updated>2010-05-28T22:35:00Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-05-27T15:34:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fc6fa0d0f38f4e5b47f260fe2755ba0d1b17ae53'/>
<id>urn:sha1:fc6fa0d0f38f4e5b47f260fe2755ba0d1b17ae53</id>
<content type='text'>
Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502-commit: fix spelling</title>
<updated>2010-05-25T16:48:37Z</updated>
<author>
<name>Tay Ray Chuan</name>
<email>rctay89@gmail.com</email>
</author>
<published>2010-05-24T08:51:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e8f30160007d976746d880dab73b805435e04149'/>
<id>urn:sha1:e8f30160007d976746d880dab73b805435e04149</id>
<content type='text'>
s/subdirecotry/subdirectory/

Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502: test commit.status, --status and --no-status</title>
<updated>2010-01-13T09:13:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-13T08:12:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f9c01817bb7a0a7b61652ec8e3ac12c900526f0e'/>
<id>urn:sha1:f9c01817bb7a0a7b61652ec8e3ac12c900526f0e</id>
<content type='text'>
Make sure that the status information:

 - is shown as before without configuration nor command line option;

 - is shown if commit.status is set to true and no command line option
   is given, or --status is explicitly given;

 - is not shown if commit.status is set to false and no command line
   option is given, or --no-status is explicitly given.

Also make sure that the way lines taken from the custom --template appear
in the log message editor is not changed at all.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-commit.c: fix logic to omit empty line before existing footers</title>
<updated>2009-11-07T07:17:26Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-11-07T07:06:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e5138436ddd4b5f75c1e910f6b844e4fcf91343d'/>
<id>urn:sha1:e5138436ddd4b5f75c1e910f6b844e4fcf91343d</id>
<content type='text'>
"commit -s" used to add an empty line before adding S-o-b line only when
the last line of the existing log message is not another S-o-b line, but
c1e01b0 (commit: More generous accepting of RFC-2822 footer lines.,
2009-10-28) introduced logic to omit this empty line when the message ends
with a run of "footer" lines, to cover S-o-b's friends, e.g. Acked-by.

However, the logic was overzealous and missed one corner case.  A message
that consists of a single line that begins with Token + colon, it can be
mistaken as a S-o-b's friend.  We do want an empty line in such a case.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7502-commit: Skip SIGTERM test on Windows</title>
<updated>2009-03-25T20:25:57Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2009-03-25T12:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb9a2beab2002894fb970cba4e32ebb1c41176b2'/>
<id>urn:sha1:fb9a2beab2002894fb970cba4e32ebb1c41176b2</id>
<content type='text'>
The implementation of exec on Windows is just a rough approximation of the
POSIX behavior. In particular, no real process "overlay" happens (a new
process is spawned instead and the parent process waits until the child
terminates). In particular, the process ID cannot be taken by the exec'd
process. But there is one test in t7502-commit.sh that depends on this.
We have to skip it on Windows.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
</content>
</entry>
<entry>
<title>wt-status: load diff ui config</title>
<updated>2008-10-26T21:09:48Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2008-10-26T04:49:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f672ad6c77bfe73cc5dd4b240fd42303d101d2a'/>
<id>urn:sha1:4f672ad6c77bfe73cc5dd4b240fd42303d101d2a</id>
<content type='text'>
When "git status -v" shows a diff, we did not respect the
user's usual diff preferences at all. Loading just
git_diff_basic_config would give us things like rename
limits and diff drivers. But it makes even more sense to
load git_diff_ui_config, which gives us colorization if the
user has requested it.

Note that we need to take special care to cancel
colorization when writing to the commit template file, as
described in the code comments.

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>Compact commit template message</title>
<updated>2008-07-31T18:20:13Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2008-07-31T07:36:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fdc7c81111a2ca8d97b8b45e260d7a4e737c8766'/>
<id>urn:sha1:fdc7c81111a2ca8d97b8b45e260d7a4e737c8766</id>
<content type='text'>
We recently let the user know explicitly that an empty
commit message will abort the commit. However, this adds yet
another line to the template; let's rephrase and re-wrap so
that this fits back on two lines.

This patch also makes the "fatal: empty commit message?"
warning a bit less scary, since this is now a "feature"
instead of an error. However, we retain the non-zero exit
status to indicate to callers that nothing was committed.

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