diff --git a/repo_branches.go b/repo_branch.go similarity index 63% rename from repo_branches.go rename to repo_branch.go index e6f5458..1e58112 100644 --- a/repo_branches.go +++ b/repo_branch.go @@ -1,12 +1,17 @@ +// Copyright 2016 The Gogs Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + package gogs import ( "fmt" ) +// Branch represents a repository branch. type Branch struct { - Name string `json:"name"` - Commit *PayloadCommit `json:"commit"` + Name string `json:"name"` + Commit *PayloadCommit `json:"commit"` } func (c *Client) ListRepoBranches(user, repo string) ([]*Branch, error) {