Code

blame,cat-file --textconv: Don't assume mode is ``S_IFREF | 0664''
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Wed, 29 Sep 2010 11:35:24 +0000 (15:35 +0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Sep 2010 23:53:25 +0000 (16:53 -0700)
commit900647104e02e545064789f3c6b90a5807fba07b
tree18afcf6ef450617cf0944058d40fe9e14c93312a
parentab3b7b9a6e3bf5793520f06eb76fb03ffe8231cb
blame,cat-file --textconv: Don't assume mode is ``S_IFREF | 0664''

We need to get the correct mode when blame reads the source from the
working tree, the index, or trees.  This allows us to omit running
textconv filters on symbolic links.

Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Reviewed-by: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin.h
builtin/blame.c
builtin/cat-file.c
sha1_name.c
t/t8006-blame-textconv.sh
t/t8007-cat-file-textconv.sh