Minor fix for #15
This commit is contained in:
parent
01d5b5ee82
commit
4f98d4dc0d
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
Loading…
Reference in a new issue