6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/stagehand/staging/auditor.rb', line 6
def incomplete_commits
incomplete = []
incomplete_start_operations.each do |start_operation|
entries = records_until_match(start_operation, :asc, :operation => CommitEntry::START_OPERATION).to_a
incomplete << [start_operation.id, entries]
end
incomplete_end_operations.each do |end_operation|
entries = records_through_match(end_operation, :desc, :operation => CommitEntry::START_OPERATION).to_a
incomplete << [entries.last.id, entries]
end
return incomplete.to_h
end
|