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
Customize ShortSha length in templates [master] #12451
Comments
@gabyx why did you need 12-length shortsha? 100k+ commits? |
I think the easyest way to go is with |
it'd be good if we could somehow just have this as a per repo setting - or even have git do this I guess the question is how expensive is it to generate these shortsha lengths? |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Method without git config:
Method git config:First good solution would be to read So the user can define on the server a |
It would be nice if we could somehow customize the length of the ShortSha in the templates over
app.ini
or somehow else:Such that all GUI related SHA hashes have some predefined length. In our setting, we need a length of
12
.The relevant code is here.
gitea/modules/base/tool.go
Line 57 in 0e24af6
Templates use
The text was updated successfully, but these errors were encountered: