Commit a808cfa5a739af830d2426a0fa3b420425d0037b

Stefan Sperling 2019-02-03T17:07:55

add GOT_ERR_BAD_REF_DATA

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/include/got_error.h b/include/got_error.h
index ba1061d..ed60d55 100644
--- a/include/got_error.h
+++ b/include/got_error.h
@@ -70,6 +70,7 @@
 #define GOT_ERR_PATH_PREFIX	54
 #define GOT_ERR_ANCESTRY	55
 #define GOT_ERR_FILEIDX_BAD	56
+#define GOT_ERR_BAD_REF_DATA	57
 
 static const struct got_error {
 	int code;
@@ -130,6 +131,7 @@ static const struct got_error {
 	{ GOT_ERR_ANCESTRY,	"specified commit does not share ancestry with "
 				"the current branch" },
 	{ GOT_ERR_FILEIDX_BAD,	"file index is corrupt" },
+	{ GOT_ERR_BAD_REF_DATA,	"could not parse reference data" },
 };
 
 /*