diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-04-16 16:33:37 +0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-04-16 18:56:53 +0900 |
| commit | ec580eaaa3bdc2327d049932d1ebb2ca62aae837 (patch) | |
| tree | 03249c7383eb52812d9de970380c9e3800833c88 /cache.h | |
| parent | sha1-name.c: remove the_repo from get_oid_with_context_1() (diff) | |
| download | git-ec580eaaa3bdc2327d049932d1ebb2ca62aae837.tar.gz git-ec580eaaa3bdc2327d049932d1ebb2ca62aae837.zip | |
sha1-name.c: add repo_get_oid()
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 'cache.h')
| -rw-r--r-- | cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1380,7 +1380,8 @@ enum get_oid_result { */ }; -extern int get_oid(const char *str, struct object_id *oid); +int repo_get_oid(struct repository *r, const char *str, struct object_id *oid); +#define get_oid(str, oid) repo_get_oid(the_repository, str, oid) extern int get_oid_commit(const char *str, struct object_id *oid); extern int get_oid_committish(const char *str, struct object_id *oid); extern int get_oid_tree(const char *str, struct object_id *oid); |
