mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
lockfile: add accessor get_lock_file_path()
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
c99a4c2db3
commit
b4fb09e4da
@@ -203,6 +203,12 @@ extern NORETURN void unable_to_lock_die(const char *path, int err);
|
||||
*/
|
||||
extern FILE *fdopen_lock_file(struct lock_file *lk, const char *mode);
|
||||
|
||||
/*
|
||||
* Return the path of the lockfile. The return value is a pointer to a
|
||||
* field within the lock_file object and should not be freed.
|
||||
*/
|
||||
extern const char *get_lock_file_path(struct lock_file *lk);
|
||||
|
||||
extern int get_lock_file_fd(struct lock_file *lk);
|
||||
extern FILE *get_lock_file_fp(struct lock_file *lk);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user