blame: use different author name for fake commit generated by --contents
commit603d0fdce2ca84d4dc7b26e46430778fe9c4cb72
authorJacob Keller <jacob.keller@gmail.com>
Mon, 24 Apr 2023 19:35:08 +0000 (24 12:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Apr 2023 22:16:31 +0000 (24 15:16 -0700)
tree2e9694d9986637e357ad3191f21659cabee73077
parent7580f92ffa970b9484ac214f7b53cec5e26ca4bc
blame: use different author name for fake commit generated by --contents

When the --contents option is used with git blame, and the contents of
the file have lines which can't be annotated by the history being
blamed, the user will see an author of "Not Committed Yet". This is
similar to the way blame handles working tree contents when blaming
without a revision.

This is slightly confusing since this data isn't the working copy and
while it is technically "not committed yet", its also coming from an
external file. Replace this author name with "External file
(--contents)" to better differentiate such lines from actual working
copy lines.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Suggested-by: Glen Choo <chooglen@google.com>
Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/blame-options.txt
blame.c
t/annotate-tests.sh