diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-29 19:29:52 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2014-03-29 19:29:52 +0800 |
commit | a726c125b572bc1ff0b445990821280e304db9ff (patch) | |
tree | 96e6d27a4505f8f5a16ea086b227add575a87c50 /update.go | |
parent | f48fc24670b122df069149801459eb55a67045c7 (diff) | |
download | gitea-a726c125b572bc1ff0b445990821280e304db9ff.tar.gz gitea-a726c125b572bc1ff0b445990821280e304db9ff.zip |
Add PushCommit
Diffstat (limited to 'update.go')
-rw-r--r-- | update.go | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -130,11 +130,15 @@ func runUpdate(c *cli.Context) { return } - commits := make([][]string, 0) + commits := make([]*base.PushCommit, 0) var maxCommits = 3 for e := l.Front(); e != nil; e = e.Next() { commit := e.Value.(*git.Commit) - commits = append(commits, []string{commit.Id().String(), commit.Message()}) + commits = append(commits, + &base.PushCommit{commit.Id().String(), + commit.Message(), + commit.Author.Email, + commit.Author.Name}) if len(commits) >= maxCommits { break } |