summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-08-26 11:32:24 -0700
committerJunio C Hamano <gitster@pobox.com>2024-08-26 11:32:24 -0700
commit3222718ad7d9dfc50e31037bf2f3977d2071fb75 (patch)
treefb2bd5fb5cd5d53c84daa07b3a0d6356b3a59583 /commit.h
parent3dd2a2feca6e47b2931dadadad44f92a35e8cf51 (diff)
parent4b707a6e99651b1ba7c8718f95ee57c6721c85d6 (diff)
Merge branch 'ds/for-each-ref-is-base'
'git for-each-ref' learned a new "--format" atom to find the branch that the history leading to a given commit "%(is-base:<commit>)" is likely based on. * ds/for-each-ref-is-base: p1500: add is-base performance tests for-each-ref: add 'is-base' token commit: add gentle reference lookup method commit-reach: add get_branch_base_for_tip
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index d62b1d93f9..0e5fce543c 100644
--- a/commit.h
+++ b/commit.h
@@ -81,6 +81,8 @@ struct commit *lookup_commit_reference_gently(struct repository *r,
const struct object_id *oid,
int quiet);
struct commit *lookup_commit_reference_by_name(const char *name);
+struct commit *lookup_commit_reference_by_name_gently(const char *name,
+ int quiet);
/*
* Look up object named by "oid", dereference tag as necessary,