-f, --show-name
Show the filename in the original commit. By default the filename is shown if there is any line that came from a file with a different name, due to rename detection.
Run Code Online (Sandbox Code Playgroud)
但是--show-name=off不起作用.
error: option `show-name' takes no value
usage: git blame [<options>] [<rev-opts>] [<rev>] [--] <file>
Run Code Online (Sandbox Code Playgroud)
如何从输出中隐藏详细文件名?
此选项在commit eb93b724中引入(git 1.4.4,2006年10月)
新选项使命令的本机输出格式显示文件名,即使其历史记录中没有重命名,也使Porcelains解析其输出更简单.
这意味着:
正如Edouard Poor的回答所提到的,你可以使用git blame -c,它强制使用相同的输出模式git-annotate.