github.com/nemith/go-gitlog@v0.0.2-0.20180205151741-6c79beb2287b/fields.go (about)

     1  package gitlog
     2  
     3  import "time"
     4  
     5  // Hash of commit
     6  type Hash struct {
     7  	Long  string
     8  	Short string
     9  }
    10  
    11  // Tree hash of commit
    12  type Tree struct {
    13  	Long  string
    14  	Short string
    15  }
    16  
    17  // Author of commit
    18  type Author struct {
    19  	Name  string
    20  	Email string
    21  	Date  time.Time
    22  }
    23  
    24  // Tag of commit
    25  type Tag struct {
    26  	Name string
    27  	Date time.Time
    28  }
    29  
    30  // Committer of commit
    31  type Committer struct {
    32  	Name  string
    33  	Email string
    34  	Date  time.Time
    35  }
    36  
    37  // Commit data
    38  type Commit struct {
    39  	Hash      *Hash
    40  	Tree      *Tree
    41  	Author    *Author
    42  	Committer *Committer
    43  	Tag       *Tag
    44  	Subject   string
    45  	Body      string
    46  }