Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-22 03:10:29 +0400
committerJunio C Hamano <gitster@pobox.com>2012-05-22 20:08:49 +0400
commitbe641abdb544f00adb7ae6fdab41f9bd5453e206 (patch)
tree8f4f4d61e039f939d7a95cc7ab760ce6ebf8de37 /log-tree.h
parentc96f0c8d0a9f1eeabb2ea49cb7ede954a64bd540 (diff)
ident: trim whitespace from default name/email
Usually these values get fed to fmt_ident, which will trim any cruft anyway, but there are a few code paths which use them directly. Let's clean them up for the benefit of those callers. Furthermore, fmt_ident will look at the pre-trimmed value and decide whether to invoke ERROR_ON_NO_NAME; this check can be fooled by a name consisting only of spaces. Note that we only bother to clean up when we are pulling the information from gecos or from system files. Any other value comes from a config file, where we will have cleaned up accidental whitespace already. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.h')
0 files changed, 0 insertions, 0 deletions