StoreResolvedCommits stores the resolved commit hashes for later lookup during clone/checkout, so that the exact resolved commit is used instead of re-resolving the branch/tag.
(commits map[string]string)
| 7 | // during clone/checkout, so that the exact resolved commit is used instead |
| 8 | // of re-resolving the branch/tag. |
| 9 | func StoreResolvedCommits(commits map[string]string) { |
| 10 | resolvedCommits = commits |
| 11 | } |
| 12 | |
| 13 | // GetResolvedCommit returns the previously resolved commit hash for the |
| 14 | // given nameVersion, or an empty string if none was stored. |
no outgoing calls