From 41f1f9d732a7cdd50d58948224ca0693a68995dc Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Thu, 27 Jun 2013 16:52:00 -0700 Subject: Add API to get path to index file --- src/index.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/index.c') diff --git a/src/index.c b/src/index.c index 21efd2c63..bd5e192f3 100644 --- a/src/index.c +++ b/src/index.c @@ -516,6 +516,12 @@ int git_index_write(git_index *index) return 0; } +const char * git_index_path(git_index *index) +{ + assert(index); + return index->index_file_path; +} + int git_index_write_tree(git_oid *oid, git_index *index) { git_repository *repo; -- cgit v1.2.1