https://github.com/git/git
Revision d0f7dcbf424e1739437ffe477d87088ca6cb3432 authored by Junio C Hamano on 09 March 2011, 00:58:19 UTC, committed by Junio C Hamano on 09 March 2011, 05:35:22 UTC
Earlier, 47afed5 (SubmittingPatches: itemize and reflect upon well written
changes, 2009-04-28) added a discussion on the contents of the commit log
message, but the last part of the new paragraph didn't make much sense.
Reword it slightly to make it more readable.

Update the "quicklist" to clarify what we mean by "motivation" and
"contrast".  Also mildly discourage external references.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e0adb84
Raw File
Tip revision: d0f7dcbf424e1739437ffe477d87088ca6cb3432 authored by Junio C Hamano on 09 March 2011, 00:58:19 UTC
SubmittingPatches: clarify the expected commit log description
Tip revision: d0f7dcb
test-string-pool.c
/*
 * test-string-pool.c: code to exercise the svn importer's string pool
 */

#include "git-compat-util.h"
#include "vcs-svn/string_pool.h"

int main(int argc, char *argv[])
{
	const uint32_t unequal = pool_intern("does not equal");
	const uint32_t equal = pool_intern("equals");
	uint32_t buf[3];
	uint32_t n;

	if (argc != 2)
		usage("test-string-pool <string>,<string>");

	n = pool_tok_seq(3, buf, ",-", argv[1]);
	if (n >= 3)
		die("too many strings");
	if (n <= 1)
		die("too few strings");

	buf[2] = buf[1];
	buf[1] = (buf[0] == buf[2]) ? equal : unequal;
	pool_print_seq(3, buf, ' ', stdout);
	fputc('\n', stdout);

	pool_reset();
	return 0;
}
back to top