Commit : A git commit
| 43 | |
| 44 | // Commit : A git commit |
| 45 | type Commit struct { |
| 46 | hash *string |
| 47 | Name string |
| 48 | Tags []string |
| 49 | ExtraInfo string // something like 'HEAD -> master, tag: v0.15.2' |
| 50 | AuthorName string // something like 'Jesse Duffield' |
| 51 | AuthorEmail string // something like 'jessedduffield@gmail.com' |
| 52 | UnixTimestamp int64 |
| 53 | |
| 54 | // Hashes of parent commits (will be multiple if it's a merge commit) |
| 55 | parents []*string |
| 56 | |
| 57 | // When filtering by path, this contains the paths that were changed in this |
| 58 | // commit; nil when not filtering by path. |
| 59 | FilterPaths []string |
| 60 | |
| 61 | Status CommitStatus |
| 62 | Action todo.TodoCommand |
| 63 | ActionFlag string // e.g. "-C" for fixup -C |
| 64 | Divergence Divergence // set to DivergenceNone unless we are showing the divergence view |
| 65 | } |
| 66 | |
| 67 | type NewCommitOpts struct { |
| 68 | Hash string |
nothing calls this directly
no outgoing calls
no test coverage detected