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>
This commit is contained in:

committed by
Junio C Hamano

parent
316683bd37
commit
ec38b4e482
@ -143,6 +143,11 @@ hold_lock_file_for_append::
|
||||
the existing contents of the file (if any) to the lockfile and
|
||||
position its write pointer at the end of the file.
|
||||
|
||||
get_locked_file_path::
|
||||
|
||||
Return the path of the file that is locked by the specified
|
||||
lock_file object. The caller must free the memory.
|
||||
|
||||
commit_lock_file::
|
||||
|
||||
Take a pointer to the `struct lock_file` initialized with an
|
||||
|
Reference in New Issue
Block a user