summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:40:13 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-17 10:54:03 +0000
commitcd350852206481e984f7847a903de8d350ad7bf1 (patch)
tree8d175334bc10172bcd2e28052517771a492ad16d /src/object.h
parent90046899572f7230ceeab5fef3a909f53f817ba1 (diff)
downloadlibgit2-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.h2
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;
}
}