diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-18 11:32:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-07-03 11:17:59 -0700 |
commit | 37c00e5590605c9d3ba76b6c9d7a94ac0356f703 (patch) | |
tree | 39e7f67e8b6b8a7a5a4b576c0c923f2cfd348ed9 /cache.h | |
parent | c005e98612c3ba896415cfa56df67ae8b240cc85 (diff) | |
download | git-37c00e5590605c9d3ba76b6c9d7a94ac0356f703.tar.gz |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |