chiark / gitweb /
blame: Print the filename with blame #last
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 29 May 2019 14:19:03 +0000 (15:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:15:59 +0000 (11:15 +0100)
commit5ccd4c4d57f2640277e831fbfd62b5e5d6a40c23
tree94b685f13075fde5778c8e4f448d7d063f2458e5
parentfe2636ef4ab3ee35896aefab0595ef09370c1aa6
blame: Print the filename with blame #last

In principle we could have got this from "git blame" but (1) that
makes parsing this more annoying and (2) by rights this should come
from the fish cfg so that it can be a display name at some point.

The main effect is to print something like:
  13:41 <Servus> Modified flirts 2011-05-31: new fish from Alice
rather than:
  13:41 <Servus> Modified 2011-05-31: new fish from Alice

I have not taken the trouble to touch the three open-coded special
cases for blame #trouts etc.  I thought that was beyond the call of
duty.  In those cases it will print:
  13:41 <Servus> Modified fish? 2011-05-31: new fish from Alice

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
commands.py