diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 10:40:13 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-17 10:54:03 +0000 |
commit | cd350852206481e984f7847a903de8d350ad7bf1 (patch) | |
tree | 8d175334bc10172bcd2e28052517771a492ad16d /src/object.h | |
parent | 90046899572f7230ceeab5fef3a909f53f817ba1 (diff) | |
download | libgit2-cd350852206481e984f7847a903de8d350ad7bf1.tar.gz |
object_type: GIT_OBJECT_BAD is now GIT_OBJECT_INVALID
We use the term "invalid" to refer to bad or malformed data, eg
`GIT_REF_INVALID` and `GIT_EINVALIDSPEC`. Since we're changing the
names of the `git_object_t`s in this release, update it to be
`GIT_OBJECT_INVALID` instead of `BAD`.
Diffstat (limited to 'src/object.h')
-rw-r--r-- | src/object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.h b/src/object.h index 95a7e2c12..227a6fdd5 100644 --- a/src/object.h +++ b/src/object.h @@ -62,7 +62,7 @@ GIT_INLINE(git_object_t) git_object__type_from_filemode(git_filemode_t mode) case GIT_FILEMODE_LINK: return GIT_OBJECT_BLOB; default: - return GIT_OBJECT_BAD; + return GIT_OBJECT_INVALID; } } |