mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-22 14:20:10 -05:00
merge-base: use the new lookup_commit_reference() helper function
This allows you to use tags for merge bases.
This commit is contained in:
@@ -62,8 +62,8 @@ int main(int argc, char **argv)
|
||||
get_sha1(argv[2], rev2key)) {
|
||||
usage("merge-base <commit-id> <commit-id>");
|
||||
}
|
||||
rev1 = lookup_commit(rev1key);
|
||||
rev2 = lookup_commit(rev2key);
|
||||
rev1 = lookup_commit_reference(rev1key);
|
||||
rev2 = lookup_commit_reference(rev2key);
|
||||
ret = common_ancestor(rev1, rev2);
|
||||
if (!ret)
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user