Skip to content

enhancement of compare feature #29766

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ branch = Branch
tree = Tree
clear_ref = `Clear current reference`
filter_branch_and_tag = Filter branch or tag
filter_repo = Search repository
find_tag = Find tag
branches = Branches
tags = Tags
Expand Down Expand Up @@ -1749,6 +1750,9 @@ issues.reference_link = Reference: %s

compare.compare_base = base
compare.compare_head = compare
compare.titile = Comparing %s
compare.refs_not_exist = Head or base ref is not exist.
compare.head_info_not_exist = Head user or repository is not exist.

pulls.desc = Enable pull requests and code reviews.
pulls.new = New Pull Request
Expand Down
4 changes: 4 additions & 0 deletions routers/common/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ type CompareInfo struct {
BaseBranch string
HeadBranch string
DirectComparison bool
RefsNotExist bool
HeadInfoNotExist bool
HeadRef string
BaseRef string
}
Loading