CompareCommitsPath returns the comparison path using given owner, repository, and commit IDs.
(owner, repo, oldCommitID, newCommitID string)
| 45 | // CompareCommitsPath returns the comparison path using given owner, repository, |
| 46 | // and commit IDs. |
| 47 | func 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. |
| 52 | func UserPath(user string) string { |
no outgoing calls