lockfile: show absolute filename in unable_to_lock_message
commita8c37a0e011d67e3192834a0fffe17452ea57a08
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Thu, 7 Jan 2010 14:54:10 +0000 (7 15:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Jan 2010 23:48:24 +0000 (12 15:48 -0800)
treec05b70d3451f1b22a3eb076273bb3942616954d1
parent0def5b6ed4ffbc2cced3206acd6359178f7b8c5d
lockfile: show absolute filename in unable_to_lock_message

When calling a git command from a subdirectory and a file locking fails,
the user will get a path relative to the root of the worktree, which is
invalid from the place where the command is ran. Make it easy for the
user to know which file it is.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c