summaryrefslogtreecommitdiff
path: root/src/index.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2017-11-17 00:19:07 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2018-06-29 14:54:28 +0100
commitb242cdbf1e1dd2cc9e26e0085a20230ff34d156b (patch)
tree477b5d83b340080204f7d1f80e1e27c14c229804 /src/index.h
parentdc4a18c7455e1696b2056a02f934e1f7ac80d940 (diff)
downloadlibgit2-b242cdbf1e1dd2cc9e26e0085a20230ff34d156b.tar.gz
index: commit the changes to the index properly
Now that the index has a "dirty" state, where it has changes that have not yet been committed or rolled back, our tests need to be adapted to actually commit or rollback the changes instead of assuming that the index can be operated on in its indeterminate state.
Diffstat (limited to 'src/index.h')
-rw-r--r--src/index.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.h b/src/index.h
index 8bf100849..a5182743a 100644
--- a/src/index.h
+++ b/src/index.h
@@ -149,6 +149,8 @@ GIT_INLINE(int) git_index_is_dirty(git_index *index)
return index->dirty;
}
+extern int git_index_read_safely(git_index *index);
+
typedef struct {
git_index *index;
git_filebuf file;