1
0
mirror of https://github.com/go-gitea/git.git synced 2026-02-05 06:45:03 +01:00

get branch from commit sha1 (#142)

This commit is contained in:
Lanre Adelowo
2019-02-04 00:53:29 +01:00
committed by zeripath
parent d04f81a6f8
commit fbe468c7a6
2 changed files with 10 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ import (
// Commit represents a git commit.
type Commit struct {
Branch string // Branch this commit belongs to
Tree
ID SHA1 // The ID of this commit object
Author *Signature