From 4f98d4dc0dd1af1b7ca7ff462dca65c5347ca933 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 2 Feb 2016 16:54:14 -0500 Subject: [PATCH] Minor fix for #15 --- repo_branches.go => repo_branch.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename repo_branches.go => repo_branch.go (63%) 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) {