summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-18 04:42:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-04-18 04:42:12 (GMT)
commita9b772a0116869f0f93e57ca0b49fd66325bb04a (patch)
tree21ff148b24d3a0239d5a68a647a6884569a4a5d2 /refs.h
parentbd15ef078afac3f0f147e815d3b85d6d2a48dd1a (diff)
parent45972ffbedf8175555434006595c71a5b0e643f1 (diff)
downloadgit-a9b772a0116869f0f93e57ca0b49fd66325bb04a.zip
git-a9b772a0116869f0f93e57ca0b49fd66325bb04a.tar.gz
git-a9b772a0116869f0f93e57ca0b49fd66325bb04a.tar.bz2
Merge branch 'bw/short-ref-strict'
* bw/short-ref-strict: remote.c: use shorten_unambiguous_ref rev-parse: --abbrev-ref option to shorten ref name for-each-ref: utilize core.warnAmbiguousRefs for :short-format shorten_unambiguous_ref(): add strict mode
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.h b/refs.h
index 50abbbb..29d17a4 100644
--- a/refs.h
+++ b/refs.h
@@ -81,7 +81,7 @@ extern int for_each_reflog(each_ref_fn, void *);
extern int check_ref_format(const char *target);
extern const char *prettify_ref(const struct ref *ref);
-extern char *shorten_unambiguous_ref(const char *ref);
+extern char *shorten_unambiguous_ref(const char *ref, int strict);
/** rename ref, return 0 on success **/
extern int rename_ref(const char *oldref, const char *newref, const char *logmsg);