]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/blame.c
git blame -C: fix output format tweaks when crossing file boundary.
authorJunio C Hamano <junkio@cox.net>
Wed, 29 Nov 2006 06:29:18 +0000 (22:29 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 29 Nov 2006 06:32:23 +0000 (22:32 -0800)
commitab3bb800b46cf66249ead9e13c22cbc48d790c9a
tree2e7df5eec59b7ad128bff0217ec6f47042d72db2
parentf73da29fa2be2f4bbda86e006b743b8121bdbf19
git blame -C: fix output format tweaks when crossing file boundary.

We used to get the case that more than two paths came from the
same commit wrong when computing the output width and deciding
to turn on --show-name option automatically.  When we find that
lines that came from a path that is different from what we
started digging from, we should always turn --show-name on, and
we should count the name length for all files involved.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-blame.c