MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / Commit

Struct Commit

pkg/commands/models/commit.go:45–65  ·  view source on GitHub ↗

Commit : A git commit

Source from the content-addressed store, hash-verified

43
44// Commit : A git commit
45type 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
67type NewCommitOpts struct {
68 Hash string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected