Support shortened commit SHAs in URLs (#13686)
Support shortened commit SHAs in URLs (#13686)

* Support shortened commit SHAs in URLs and API

* Add test case for short sha

* Fix format

* Revert API support

* Add canonical link headers for short commit ID URLs
vdbt/gitea,vdbt/gitea,go-gitea/gitea,cez81/gitea,cez81/gitea,cez81/gitea,go-gitea/gitea,go-gitea/gitea