]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
sha1_name.c: teach lookup context to get_sha1_with_context()
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 1508fdb77a03b982167a1c3453ca92de514bb6e8..e1fa63b3196238b5df5348ab3498fd454511e386 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -814,10 +814,11 @@ struct object_context {
 #define GET_SHA1_QUIETLY 01
 #define GET_SHA1_COMMIT 02
 #define GET_SHA1_COMMITTISH 04
+#define GET_SHA1_ONLY_TO_DIE 04000
 
 extern int get_sha1(const char *str, unsigned char *sha1);
 extern void maybe_die_on_misspelt_object_name(const char *name, const char *prefix);
-extern int get_sha1_with_context(const char *str, unsigned char *sha1, struct object_context *orc);
+extern int get_sha1_with_context(const char *str, unsigned flags, unsigned char *sha1, struct object_context *orc);
 
 /*
  * Try to read a SHA1 in hexadecimal format from the 40 characters