Английская Википедия:Changeset
Шаблон:Use dmy dates Шаблон:EngvarB Шаблон:More citations needed
In version control software, a changeset (also known as commit[1] and revision[2][3]) is a set of alterations packaged together, along with meta-information about the alterations. A changeset describes the exact differences between two successive versions in the version control system's repository of changes. Changesets are typically treated as an atomic unit, an indivisible set, by version control systems. This is one synchronization model.[4][5]
Terminology
In the Git version control system a changeset is called a commit,[1] not to be confused with the commit operation that is used to commit a changeset (or in Git's case technically a snapshot[1]) to a repository.[6]
Other version control systems also use other names to refer to changesets, for example Darcs calls them "patches",[7] while Pijul refers to them as "changes".[8]
Metadata
Version control systems attach metadata to changesets. Typical metadata includes a description provided by the programmer (a "commit message" in Git lingo), the name of the author, the date of the commit, etc.[9]
Unique identifiers are an important part of the metadata which version control systems attach to changesets. Centralized version control systems, such as Subversion and CVS simply use incrementing numbers as identifiers.[10][11] Distributed version control systems, such as Git, generate a unique identifier by applying a cryptographic hash function to the changeset.[12]
Best practices
Because version control systems operate on changesets as atomic units, and because communication within development teams improves performance, there are certain best practices to follow when creating changesets. Only the 2 most significant are mentioned here, changeset content atomicity and changeset descriptions.
Changeset content should involve only one task or fix, and contain only code which works and does not knowingly break existing functionality.[13]
Changeset descriptions should be short, recording why the modification was made, the modification's effect or purpose, and describing non-obvious aspects of how the change works.[14]
See also
References
Шаблон:Version control software Шаблон:Cms-software-stub
- ↑ 1,0 1,1 1,2 changeset in the gitglossary
- ↑ revision in the gitglossary
- ↑ UnderstandingMercurial - Mercurial
- ↑ Mercurial: ChangeSet Шаблон:Webarchive
- ↑ Шаблон:Cite web
- ↑ commit in the gitglossary
- ↑ Darcs - DifferencesFromGit
- ↑ pijul log - The Pijul manual
- ↑ Git - git-commit-tree Documentation
- ↑ Revision Specifiers - Version Control with Subversion
- ↑ CVS--Concurrent Versions System - Revisions
- ↑ Git - hash-function-transition Documentation
- ↑ Шаблон:Cite web
- ↑ Шаблон:Cite web