summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-18 18:32:03 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-07-03 18:17:59 (GMT)
commit37c00e5590605c9d3ba76b6c9d7a94ac0356f703 (patch)
tree39e7f67e8b6b8a7a5a4b576c0c923f2cfd348ed9 /cache.h
parentc005e98612c3ba896415cfa56df67ae8b240cc85 (diff)
downloadgit-37c00e5590605c9d3ba76b6c9d7a94ac0356f703.zip
git-37c00e5590605c9d3ba76b6c9d7a94ac0356f703.tar.gz
git-37c00e5590605c9d3ba76b6c9d7a94ac0356f703.tar.bz2
sha1_name.c: allow get_short_sha1() to take other flags
Instead of a separate "int quietly" argument, make it take "unsigned flags" so that we can pass other options to it. The bit assignment of this flag word is exposed in cache.h because the mechanism will be exposed to callers of the higher layer in later commits in this series. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 2aa9fb6..1bafa45 100644
--- a/cache.h
+++ b/cache.h
@@ -811,6 +811,8 @@ struct object_context {
unsigned mode;
};
+#define GET_SHA1_QUIETLY 01
+
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);