code.gitea.io/gitea@v1.22.3/routers/common/compare.go (about)

     1  // Copyright 2024 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package common
     5  
     6  import (
     7  	repo_model "code.gitea.io/gitea/models/repo"
     8  	user_model "code.gitea.io/gitea/models/user"
     9  	"code.gitea.io/gitea/modules/git"
    10  )
    11  
    12  // CompareInfo represents the collected results from ParseCompareInfo
    13  type CompareInfo struct {
    14  	HeadUser         *user_model.User
    15  	HeadRepo         *repo_model.Repository
    16  	HeadGitRepo      *git.Repository
    17  	CompareInfo      *git.CompareInfo
    18  	BaseBranch       string
    19  	HeadBranch       string
    20  	DirectComparison bool
    21  }