MCPcopy Index your code
hub / github.com/gogs/gogs / Log

Method Log

internal/gitutil/module.go:17–17  ·  view source on GitHub ↗

Log returns a list of commits in the state of given revision of the repository in given path. The returned list is in reverse chronological order.

(repoPath, rev string, opts ...git.LogOptions)

Source from the content-addressed store, hash-verified

15 // repository in given path. The returned list is in reverse chronological
16 // order.
17 Log(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error)
18 // MergeBase returns merge base between base and head revisions of the
19 // repository in given path.
20 MergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error)

Callers 6

WikiFunction · 0.65
WikiPagesFunction · 0.65
GetAllCommitsFunction · 0.65
PullRequestMetaMethod · 0.65
LogMethod · 0.65
lognFunction · 0.65

Implementers 2

MockModuleStoreinternal/gitutil/mocks.go
moduleinternal/gitutil/module.go

Calls

no outgoing calls

Tested by

no test coverage detected