aboutsummaryrefslogtreecommitdiff
path: root/git_ref.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--git_ref.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/git_ref.go b/git_ref.go
index 46f08e0..dbf9d7e 100644
--- a/git_ref.go
+++ b/git_ref.go
@@ -14,6 +14,8 @@ var (
err_getting_head = errors.New("Error getting HEAD")
)
+// get_ref_hash_from_type_and_name returns the hash of a reference given its
+// type and name as supplied in URL queries.
func get_ref_hash_from_type_and_name(repo *git.Repository, ref_type, ref_name string) (ref_hash plumbing.Hash, ret_err error) {
switch ref_type {
case "":