author | Fredrik Kuivinen <freku045@student.liu.se> | |
Fri, 17 Mar 2006 21:49:28 +0000 (22:49 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 17 Mar 2006 22:09:10 +0000 (14:09 -0800) | ||
commit | 88a8b7955666ed8fa5924fadbb3bb58984eaa6af | |
tree | a8ef7a9d52e21fceee668d032b6adfdc7b358e3f | tree | snapshot |
parent | 6169858d19b0ee01a549d83f222c097549968d66 | commit | diff |
blame: Nicer output
As pointed out by Junio, it may be dangerous to cut off people's names
after 15 bytes. If the name is encoded in an encoding which uses more
than one byte per code point we may end up with outputting garbage.
Instead of trying to do something smart, just output the entire name.
We don't gain much screen space by chopping it off anyway.
Furthermore, only output the file name if we actually found any
renames.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
As pointed out by Junio, it may be dangerous to cut off people's names
after 15 bytes. If the name is encoded in an encoding which uses more
than one byte per code point we may end up with outputting garbage.
Instead of trying to do something smart, just output the entire name.
We don't gain much screen space by chopping it off anyway.
Furthermore, only output the file name if we actually found any
renames.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c | diff | blob | history |