get_locked_file_path(): new function
commitec38b4e482e96e62762452cab5714e55abdb48c3
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 1 Oct 2014 10:28:39 +0000 (1 12:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Oct 2014 20:53:54 +0000 (1 13:53 -0700)
tree7b9e0268013d641289da53c9630ebd7af5aba8d7
parent316683bd37608e31cc3f5e932c4e5c7dde1b39f0
get_locked_file_path(): new function

Add a function to return the path of the file that is locked by a
lock_file object. This reduces the knowledge that callers have to have
about the lock_file layout.

Suggested-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/api-lockfile.txt
cache.h
lockfile.c
refs.c