Skip to content

Commit 4f98d4d

Browse files
committed
Minor fix for #15
1 parent 01d5b5e commit 4f98d4d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

repo_branches.go renamed to repo_branch.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
1+
// Copyright 2016 The Gogs Authors. All rights reserved.
2+
// Use of this source code is governed by a MIT-style
3+
// license that can be found in the LICENSE file.
4+
15
package gogs
26

37
import (
48
"fmt"
59
)
610

11+
// Branch represents a repository branch.
712
type Branch struct {
8-
Name string `json:"name"`
9-
Commit *PayloadCommit `json:"commit"`
13+
Name string `json:"name"`
14+
Commit *PayloadCommit `json:"commit"`
1015
}
1116

1217
func (c *Client) ListRepoBranches(user, repo string) ([]*Branch, error) {

0 commit comments

Comments
 (0)