229
}
230
231
>
startItem := versionhistory.NewVersionHistoryItem(req.GetStartEventId(), req.GetStartEventVersion())
api.go
232
>
// If the request start event is defined. The start event may be on a different branch as current branch.
233
>
// We need to find the LCA of the start event and the current branch.
234
>
if req.GetStartEventId() == common.FirstEventID-1 &&
235
>
req.GetStartEventVersion() == firstItem.GetVersion() {
236
// this is a special case, start event is on the same branch as target branch
238
if !versionhistory.ContainsVersionHistoryItem(targetBranch, startItem) {
239
idx, err := versionhistory.FindFirstVersionHistoryIndexByVersionHistoryItem(versionHistories, startItem)