Skip to content
Snippets Groups Projects
Commit 10ae0d83 authored by Maxim Rydkin's avatar Maxim Rydkin
Browse files

replace `is_ancestor` with `ancestor?`

parent 90112f57
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -12,7 +12,7 @@ module Gitlab
!project
.repository
.gitaly_commit_client
.is_ancestor(oldrev, newrev)
.ancestor?(oldrev, newrev)
else
Gitlab::Git::RevList.new(
path_to_repo: project.repository.path_to_repo,
Loading
Loading
Loading
Loading
@@ -440,7 +440,7 @@ module Gitlab
 
# Returns true is +from+ is direct ancestor to +to+, otherwise false
def ancestor?(from, to)
gitaly_commit_client.is_ancestor(from, to)
gitaly_commit_client.ancestor?(from, to)
end
 
# Return an array of Diff objects that represent the diff
Loading
Loading
Loading
Loading
@@ -22,7 +22,7 @@ module Gitlab
end
end
 
def is_ancestor(ancestor_id, child_id)
def ancestor?(ancestor_id, child_id)
request = Gitaly::CommitIsAncestorRequest.new(
repository: @gitaly_repo,
ancestor_id: ancestor_id,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment