After a staged rename (git mv, or a moved file added to the index) and an edit, Annotate said the file had no committed history, Show History for File was empty and the gutter marked every line as added: blame, the gutter's base and the file history looked the new name up in HEAD, which only has the old one.
When a path is in the index but not in HEAD, Repo::committed_path finds HEAD's name from the staged rename with the same rename detection status uses, and blame, line hunks and the file history read the file under that name. Inline blame, Show Current Revision and Compare with Revision look it up under the committed name too; the author lens and "reformat only changed text" follow from the same commands.
Co-authored-by: ntbang0901 <[email protected]>