Commit points to a single tree, marking it as what the project looked like at a certain point in time. It contains meta-information about that point in time, such as a timestamp, the author of the changes since the last commit, a pointer to the previous commit(s), etc. http://shafiulazam.com/gitbook
| 48 | // exact bytes the signature was computed over. Refer to EncodeWithoutSignature |
| 49 | // for more information. |
| 50 | type Commit struct { |
| 51 | // Hash of the commit object. |
| 52 | Hash plumbing.Hash |
| 53 | // Author is the original author of the commit. |
| 54 | Author Signature |
| 55 | // Committer is the one performing the commit, might be different from |
| 56 | // Author. |
| 57 | Committer Signature |
| 58 | // MergeTag is the embedded tag object when a merge commit is created by |
| 59 | // merging a signed tag. |
| 60 | MergeTag string |
| 61 | // PGPSignature is the PGP signature of the commit. |
| 62 | PGPSignature string |
| 63 | // Message is the commit message, contains arbitrary text. |
| 64 | Message string |
| 65 | // TreeHash is the hash of the root tree of the commit. |
| 66 | TreeHash plumbing.Hash |
| 67 | // ParentHashes are the hashes of the parent commits of the commit. |
| 68 | ParentHashes []plumbing.Hash |
| 69 | // Encoding is the encoding of the commit. |
| 70 | Encoding MessageEncoding |
| 71 | // List of extra headers of the commit |
| 72 | ExtraHeaders []ExtraHeader |
| 73 | |
| 74 | s storer.EncodedObjectStorer |
| 75 | // src holds the encoded object this Commit was decoded from, used by |
| 76 | // EncodeWithoutSignature to recover the canonical signed bytes. |
| 77 | src plumbing.EncodedObject |
| 78 | } |
| 79 | |
| 80 | // ExtraHeader holds any non-standard header |
| 81 | type ExtraHeader struct { |
nothing calls this directly
no outgoing calls
no test coverage detected