summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-06 11:34:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-08 08:26:33 (GMT)
commitd8984c532a18419cdbc69641f981a0a4f553729c (patch)
tree508b004b8995e7b0355f92258530f9f4f14b17d1 /refs.h
parent0b1dbf53dfeed20bd9bc34631e04c5db37ee6121 (diff)
downloadgit-d8984c532a18419cdbc69641f981a0a4f553729c.zip
git-d8984c532a18419cdbc69641f981a0a4f553729c.tar.gz
git-d8984c532a18419cdbc69641f981a0a4f553729c.tar.bz2
refs.c: add repo_dwim_ref()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index b630d5b..fd3dc1d 100644
--- a/refs.h
+++ b/refs.h
@@ -149,6 +149,7 @@ struct argv_array;
void expand_ref_prefix(struct argv_array *prefixes, const char *prefix);
int expand_ref(struct repository *r, const char *str, int len, struct object_id *oid, char **ref);
+int repo_dwim_ref(struct repository *r, const char *str, int len, struct object_id *oid, char **ref);
int dwim_ref(const char *str, int len, struct object_id *oid, char **ref);
int dwim_log(const char *str, int len, struct object_id *oid, char **ref);