Skip to content
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

[refactor] Use const for wiki DefaultBranch #21466

Merged
merged 2 commits into from
Oct 15, 2022

Conversation

6543
Copy link
Member

@6543 6543 commented Oct 15, 2022

just a nit, that will make it easier to change things and we now have a single source of truth

@6543 6543 added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Oct 15, 2022
@6543 6543 added this to the 1.18.0 milestone Oct 15, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Oct 15, 2022
Copy link
Member

@delvh delvh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More maintainable and less binary size. Win-Win!

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 15, 2022
@6543 6543 added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Oct 15, 2022
@wxiaoguang
Copy link
Contributor

off topic: but IMO most modern compilers support string pool optimization, then there would be only one copy of the duplicate string in binary. If Golang team is a modern team, Golang should also have such optimization. 😁 (I haven't looked into details, just a guess)

@6543
Copy link
Member Author

6543 commented Oct 15, 2022

yes but it make it more maintainable, and that's my main point here

@6543
Copy link
Member Author

6543 commented Oct 15, 2022

.

@6543 6543 merged commit a33ff82 into go-gitea:main Oct 15, 2022
@6543 6543 deleted the refactor_use_const branch October 15, 2022 14:40
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants