Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between 'commit' and 'revision'

What's the difference between a commit and revision? We use SVN, and get metrics from Atlassian Fisheye. There is a report in Fisheye that shows the 'top committers - by revision' and 'top commiters - by commits'.

No-one here can tell me what the difference is.

Many thanks! Andy

like image 847
Return_Of_The_Archons Avatar asked Dec 21 '11 07:12

Return_Of_The_Archons


People also ask

What does it mean to commit a file?

A commit, or "revision", is an individual change to a file (or set of files). It's like when you save a file, except with Git, every time you save it creates a unique ID (a.k.a. the "SHA" or "hash") that allows you to keep record of what changes were made when and by who.

What is difference between commit and update in SVN?

Commit uploads your changes on the CVS / SVN server, and Update overwrites the files on your localhost with the ones on the server.

What is starting revision in git?

As a special rule, rev^0 means the commit itself and is used when rev is the object name of a tag object that refers to a commit object. A suffix ~ to a revision parameter means the commit object that is the th generation grand-parent of the named commit object, following only the first parent.

What is a commit in a repository?

In version control systems, a commit is an operation which sends the latest changes of the source code to the repository, making these changes part of the head revision of the repository.


1 Answers

A commit can contain many file revisions. A file revision is basically a file that is modified as part of a commit so a single commit can have many revisions.

http://confluence.atlassian.com/display/FISHEYE/Glossary#Glossary-Commit

So "Top Committers - By Commit" shows the users who have committed the most changesets/changelists and "Top Committers - By Revision" shows the users who have created the most file versions as part of their commits.

http://confluence.atlassian.com/display/FISHEYE/FishEye+Charts?focusedCommentId=221448800#comment-221448800

like image 137
Interrobang Avatar answered Oct 11 '22 10:10

Interrobang