diff options
author | Russell Belfer <rb@github.com> | 2012-06-19 14:27:02 -0700 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-06-19 14:27:02 -0700 |
commit | da825c92d92433240ceeaea70d7618395bcfb83d (patch) | |
tree | 1cdf8d9c08d101d0ebc40b7e07eb4ba1c41611b2 /src/index.h | |
parent | 1b0ef5aa03fad68105784d5d4d87592ce005e03a (diff) | |
download | libgit2-da825c92d92433240ceeaea70d7618395bcfb83d.tar.gz |
Make index add/append support core.filemode flag
This fixes git_index_add and git_index_append to behave more like
core git, preserving old filemode data in the index when adding
and/or appending with core.filemode = false.
This also has placeholder support for core.symlinks and
core.ignorecase, but those flags are not implemented (well,
symlinks has partial support for preserving mode information in
the same way that git does, but it isn't tested).
Diffstat (limited to 'src/index.h')
-rw-r--r-- | src/index.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.h b/src/index.h index 8515f4fcb..a57da5386 100644 --- a/src/index.h +++ b/src/index.h @@ -26,6 +26,11 @@ struct git_index { git_vector entries; unsigned int on_disk:1; + + unsigned int ignore_case:1; + unsigned int distrust_filemode:1; + unsigned int no_symlinks:1; + git_tree_cache *tree; git_vector unmerged; |