-
-
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
Feature: Allow comparison of tags, etc. #3780
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I am interested in this feature as well, and it looks like 3 has already been implemented at some point. As for always showing the compare button, it should be fine to just remove gitea/templates/repo/home.tmpl Line 65 in 946bbbe
compare commits: https://try.gitea.io/davidak/youtube-dl/compare/d65d89183f...48c5663c5f compare branches: https://try.gitea.io/davidak/youtube-dl/compare/master...download-server compare commits across different branches: https://try.gitea.io/davidak/youtube-dl/compare/416da574ec...36ef9d9509 However, I'm not sure how to add the ability to enter (and possibly search and select) commits from the branch drop down on the compare page, or if there's a better way to implement the user interface for this? An alternative to just make editing the url easier could be adding copy buttons next to commits like github has https://github.com/go-gitea/gitea/commits/master since the text can't be selected from the hash. |
As I just discovered, commit/branch/tag comparison already works, it can be accessed from the
Also not sure about commits (showing all commit hashes under the dropdown menu would be rather bad), but I think tags should appear in the dropdown. |
We need to add a .. compare endpoint that does git diff a..b instead of a...b. It should not be too difficult to add but for the fact the compare endpoint is rather convoluted. |
Anyone following this thread, you may be interested in PR #15695, which was recently merged, and a new PR #15723. This latest PR doesn't exactly implement number 2 above, but it's an alternate UI for selecting tags to compare. Please help test and review it. There's another issue for two-dot compare #12349, and that would be nice. But I don't think that should block movement here, especially based on what GitHub's UI does. |
Description
Right now the comparison functionality is unnecessarily constraint. It only allows to compare branches, but not tags or single commits. Comparing to tags would be a very useful feature; e.g. to view changes since last release, or compare different releases.
Allow to provide tag names for comparison, e.g. https://try.gitea.io/hans/testa/compare/master...funny or https://try.gitea.io/hans/testa/compare/master...tag:funny
Provide green comparison button for tags as well as branches, e.g. the button is currently present here:
https://try.gitea.io/hans/testa/src/branch/master
but not here:
https://try.gitea.io/hans/testa/src/tag/funny
While we are at it, also provide the functionality for commit hashes, e.g.
https://try.gitea.io/hans/testa/compare/bd0928b003...master
This is also related to #1352
The text was updated successfully, but these errors were encountered: