blame: treat HEAD as the parent of not-committed-yet
commit78abe4af2d7c64444ae8967e4d0ff0eeaede0d89
authorJohn Keeping <john@keeping.me.uk>
Fri, 23 May 2014 11:12:33 +0000 (23 12:12 +0100)
committerJohn Keeping <john@keeping.me.uk>
Fri, 23 May 2014 11:12:33 +0000 (23 12:12 +0100)
tree666a2963e920eafcf520b25b1534f21c06427acd
parent61e8ee6eeddce27229c303a844e839950d0b6a22
blame: treat HEAD as the parent of not-committed-yet

When blaming a file with uncommitted changes, it is annoying that it is
not possible to jump to the HEAD version from an uncommitted line.  It
turns out that the commit already has HEAD as its parent, so we simply
need to relax the check in check_blame_commit() to allow the parent
request to make it to blame_go_forward().

Signed-off-by: John Keeping <john@keeping.me.uk>
src/blame.c