-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pull Requests: add button to compare force pushed commits #22857
Conversation
@@ -707,6 +707,11 @@ | |||
{{$.locale.TrN (len .Commits) "repo.issues.push_commit_1" "repo.issues.push_commits_n" (len .Commits) $createdStr | Safe}} | |||
{{end}} | |||
</span> | |||
{{if and .IsForcePush $.Issue.PullRequest.BaseRepo.Name}} | |||
<span class="ui float right comparebox"> | |||
<a href="{{$.Issue.PullRequest.BaseRepo.Link}}/compare/{{PathEscape .OldCommit}}..{{PathEscape .NewCommit}}" rel="nofollow" class="ui compare label">{{$.locale.Tr "repo.issues.force_push_compare"}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I already wondered how you would solve the problem that a force-pushed commit might have been deleted by Git GC. Your approach works of course, as it will simply display a 404
or similar…
I'm wondering: Should we perhaps open the comparison in a new tab?
You probably want to continue using this tab, if you're already taking the time to go through the individual commit history…
To quickly see what changed without having to re-read the whole diff.
03e90d3
to
dab464f
Compare
* giteaofficial/main: Fix commit retrieval by tag (go-gitea#21804) Fix missed `.hide` class (go-gitea#23208) [skip ci] Updated translations via Crowdin Add loading yaml label template files (go-gitea#22976) Allow `<video>` in MarkDown (go-gitea#22892) Pull Requests: add button to compare force pushed commits (go-gitea#22857) Do not create commit graph for temporary repos (go-gitea#23219) Use the correct selector to hide the checkmark of selected labels on clear (go-gitea#23224) Order pull request conflict checking by recently updated, for each push (go-gitea#23220) Fix incorrect checkbox behaviors in the dashboard repolist's filter (go-gitea#23147)
To quickly see what changed without having to re-read the whole diff.