diff options
author | Russell Belfer <rb@github.com> | 2013-06-27 16:52:00 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-07-10 12:14:13 -0700 |
commit | 41f1f9d732a7cdd50d58948224ca0693a68995dc (patch) | |
tree | 78c794d3709e77bddb8ced5a7e728075e50c0d99 /src | |
parent | 4535f04409a9379ace7cdda0b53a62d3cdf20676 (diff) | |
download | libgit2-41f1f9d732a7cdd50d58948224ca0693a68995dc.tar.gz |
Add API to get path to index file
Diffstat (limited to 'src')
-rw-r--r-- | src/index.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |