Skip to main content

Module commit

Module commit 

Source
Expand description

The Commit object is a data structure used to represent a specific version of a project’s files at a particular point in time. In Git, the commit object is a fundamental data structure that is used to track changes to a repository’s files over time. Whenever a developer makes changes to the files in a repository, they create a new commit object that records those changes.

Each commit object in Git contains the following information:

  • A unique SHA-1/ SHA-256 hash that identifies the commit.
  • The author and committer of the commit (which may be different people).
  • The date and time the commit was made.
  • A commit message that describes the changes made in the commit.
  • A reference to the parent commit or commits (in the case of a merge commit) that the new commit is based on.
  • The contents of the files in the repository at the time the commit was made.

Structs§

ArchivedCommit
An archived Commit
Commit
The Commit struct is used to represent a commit object.
CommitResolver
The resolver for an archived Commit