You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/06/25 12:17:59 UTC
svn commit: r957874 - /subversion/trunk/subversion/svn/blame-cmd.c
Author: julianfoad
Date: Fri Jun 25 10:17:59 2010
New Revision: 957874
URL: http://svn.apache.org/viewvc?rev=957874&view=rev
Log:
Let "svn blame" truncate long author names to keep the column width
fixed to 10 characters, as discussed in
<http://svn.haxx.se/dev/archive-2010-04/0463.shtml>.
* subversion/svn/blame-cmd.c
(print_line_info): Change the printf format to truncate author names
to 10 characters.
Patch by: Johan Corveleyn <jcorvel{_AT_}gmail.com>
Modified:
subversion/trunk/subversion/svn/blame-cmd.c
Modified: subversion/trunk/subversion/svn/blame-cmd.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/blame-cmd.c?rev=957874&r1=957873&r2=957874&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/blame-cmd.c (original)
+++ subversion/trunk/subversion/svn/blame-cmd.c Fri Jun 25 10:17:59 2010
@@ -167,7 +167,7 @@ print_line_info(svn_stream_t *out,
}
else
{
- return svn_stream_printf(out, pool, "%s %10s ", rev_str,
+ return svn_stream_printf(out, pool, "%s %10.10s ", rev_str,
author ? author : " -");
}