MCPcopy Create free account
hub / github.com/gogs/gogs / CompareCommitsPath

Function CompareCommitsPath

internal/repoutil/repoutil.go:47–49  ·  view source on GitHub ↗

CompareCommitsPath returns the comparison path using given owner, repository, and commit IDs.

(owner, repo, oldCommitID, newCommitID string)

Source from the content-addressed store, hash-verified

45// CompareCommitsPath returns the comparison path using given owner, repository,
46// and commit IDs.
47func CompareCommitsPath(owner, repo, oldCommitID, newCommitID string) string {
48 return fmt.Sprintf("%s/%s/compare/%s...%s", owner, repo, oldCommitID, newCommitID)
49}
50
51// UserPath returns the absolute path for storing user repositories.
52func UserPath(user string) string {

Callers 3

MirrorSyncPushMethod · 0.92
CommitRepoMethod · 0.92
TestCompareCommitsPathFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCompareCommitsPathFunction · 0.68