diff options
author | Russell Belfer <rb@github.com> | 2014-02-21 02:27:10 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-02-21 02:27:10 +0400 |
commit | 72556cc63ba93a187589921c6008caf92686ea9c (patch) | |
tree | 441873fde7a3ccc7f8fba11a8555641dba891746 /src/index.c | |
parent | 68a19ca9ffb685123038a8d16c0a59845f147778 (diff) |
Address PR comments
* Make GIT_INLINE an internal definition so it cannot be used in
public headers
* Fix language in CONTRIBUTING
* Make index caps API use signed instead of unsigned values
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index aa1aebf8a..e0c0022e1 100644 --- a/src/index.c +++ b/src/index.c @@ -438,7 +438,7 @@ static int create_index_error(int error, const char *msg) return error; } -int git_index_set_caps(git_index *index, unsigned int caps) +int git_index_set_caps(git_index *index, int caps) { unsigned int old_ignore_case; @@ -474,7 +474,7 @@ int git_index_set_caps(git_index *index, unsigned int caps) return 0; } -unsigned int git_index_caps(const git_index *index) +int git_index_caps(const git_index *index) { return ((index->ignore_case ? GIT_INDEXCAP_IGNORE_CASE : 0) | (index->distrust_filemode ? GIT_INDEXCAP_NO_FILEMODE : 0) | |