Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Changeset

From Wikipedia, the free encyclopedia

icon
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Changeset" – news ·newspapers ·books ·scholar ·JSTOR
(August 2020) (Learn how and when to remove this message)

Inversion control software, achangeset (also known ascommit[1] andrevision[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 anatomic unit, an indivisible set, by version control systems. This is onesynchronization model.[4][5]

Terminology

[edit]

In theGit version control system a changeset is called a commit,[1]not to be confused with thecommit 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 exampleDarcs calls them "patches",[7]whilePijul refers to them as "changes".[8]

Metadata

[edit]

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 asSubversion andCVS simply use incrementing numbers as identifiers.[10][11]Distributed version control systems, such asGit, generate a unique identifier by applying acryptographic hash function to the changeset.[12]

Best practices

[edit]

Because version control systems operate on changesets as atomic units, and because communication within development teams improves performance, there are certainbest 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

[edit]

References

[edit]
  1. ^abcchangeset in the gitglossary
  2. ^revision in the gitglossary
  3. ^UnderstandingMercurial - Mercurial
  4. ^Mercurial: ChangeSetArchived January 15, 2010, at theWayback Machine
  5. ^"Version Control System Comparison". Better SCM Initiative. Archived fromthe original on 21 March 2009.
  6. ^commit in the gitglossary
  7. ^Darcs - DifferencesFromGit
  8. ^pijul log - The Pijul manual
  9. ^Git - git-commit-tree Documentation
  10. ^Revision Specifiers - Version Control with Subversion
  11. ^CVS--Concurrent Versions System - Revisions
  12. ^Git - hash-function-transition Documentation
  13. ^GitLab."What are Git version control best practices?".gitlab.com. Retrieved11 November 2022.Write the smallest amount of code possible to solve a problem. After identifying a problem or enhancement, the best way to try something new and untested is to divide the update into small batches of value that can easily and rapidly be tested with the end user to prove the validity of the proposed solution and to roll back in case it doesn't work without deprecating the whole new functionality. ... Related to making small changes, atomic commits are a single unit of work, involving only one task or one fix (e.g. upgrade, bug fix, refactor). Atomic commits make code reviews faster and reverts easier, since they can be applied or reverted without any unintended side effects. The goal of atomic commits isn't to create hundreds of commits but to group commits by context. For example, if a developer needs to refactor code and add a new feature, she would create two separate commits rather than create a monolithic commit which includes changes with different purposes.
  14. ^ReQtest (26 October 2020)."What Are The Benefits Of Version Control?". Retrieved21 November 2022.Tracking changes ... provides an analysis of previous changes as well as a holistic view of the trajectory of the dataset. The history of the document ... gives on(sic) the purpose of the changes made.
Years, where available, indicate the date of first stable release. Systems with namesin italics are no longer maintained or have planned end-of-life dates.
Local only
Free/open-source
Proprietary
Client–server
Free/open-source
Proprietary
Distributed
Free/open-source
Proprietary
Concepts


Thiscontent management system article is astub. You can help Wikipedia byexpanding it.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Changeset&oldid=1221829233"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp