Skip to content

relizy / findReachableCommitBySubject

Function: findReachableCommitBySubject()

findReachableCommitBySubject(subject, to, cwd?): Promise<string | null>

Defined in: src/core/git-refs.ts:60

Find the most recent commit reachable from to whose subject matches subject literally. Used to locate the "twin" of a release commit that was rewritten by a rebase (the orphaned tag still points to the old commit).

Parameters

subject

string

to

string

cwd?

string

Returns

Promise<string | null>

Released under the MIT License.