aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/git/repo_hook.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-12-22 17:30:52 +0800
committerThomas Boerger <thomas@webhippie.de>2016-12-22 10:30:52 +0100
commit47a7529d9655e11471bbe39958222a13854a6133 (patch)
tree98e597255245e17d39a0062c3977fb8a510cf413 /vendor/code.gitea.io/git/repo_hook.go
parent0c5c34d7ddaf31a6d8123dac36b221de61f5ff96 (diff)
downloadgitea-47a7529d9655e11471bbe39958222a13854a6133.tar.gz
gitea-47a7529d9655e11471bbe39958222a13854a6133.zip
update code.gitea.io/git (#450)
Diffstat (limited to 'vendor/code.gitea.io/git/repo_hook.go')
-rw-r--r--vendor/code.gitea.io/git/repo_hook.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/git/repo_hook.go b/vendor/code.gitea.io/git/repo_hook.go
index 7b49647e3c..49f4d09fb6 100644
--- a/vendor/code.gitea.io/git/repo_hook.go
+++ b/vendor/code.gitea.io/git/repo_hook.go
@@ -4,10 +4,12 @@
package git
+// GetHook get one hook accroding the name on a repository
func (repo *Repository) GetHook(name string) (*Hook, error) {
return GetHook(repo.Path, name)
}
+// Hooks get all the hooks on the repository
func (repo *Repository) Hooks() ([]*Hook, error) {
return ListHooks(repo.Path)
}