You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services/repository
Gusted 692707f145
Add latest commit's SHA to content response (#20398)
* Add latest commit's SHA to content response

- When requesting the contents of a filepath, add the latest commit's
SHA to the requested file.
- Resolves #12840

* Add swagger

* Fix NPE

* Fix tests

* Hook into LastCommitCache

* Move AddLastCommitCache to a common nogogit and gogit file

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Prevent NPE

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
archiver Prevent dangling archiver goroutine (#19516) 2 years ago
files Add latest commit's SHA to content response (#20398) 2 years ago
adopt.go Remove confusing TrimPrefix(... git.BranchPrefix) (#20369) 2 years ago
adopt_test.go format with gofumpt (#18184) 2 years ago
avatar.go Move almost all functions' parameter db.Engine to context.Context (#19748) 2 years ago
avatar_test.go Some repository refactors (#17950) 3 years ago
branch.go Move some code into models/git (#19879) 2 years ago
cache.go Slightly simplify LastCommitCache (#20444) 2 years ago
check.go Move some repository related code into sub package (#19711) 2 years ago
fork.go Move some code into models/git (#19879) 2 years ago
fork_test.go Make git.OpenRepository accept Context (#19260) 2 years ago
hooks.go Move some repository related code into sub package (#19711) 2 years ago
main_test.go Use a struct as test options (#19393) 2 years ago
push.go Move some code into models/git (#19879) 2 years ago
repository.go Move issues related files into models/issues (#19931) 2 years ago
repository_test.go Move some repository related code into sub package (#19711) 2 years ago
review.go Move some repository related code into sub package (#19711) 2 years ago
review_test.go Move some repository related code into sub package (#19711) 2 years ago
template.go Move issues related files into models/issues (#19931) 2 years ago
transfer.go Move access and repo permission to models/perm/access (#19350) 2 years ago
transfer_test.go Move access and repo permission to models/perm/access (#19350) 2 years ago