1.13. Version ControlUnder Emacs

1.13.1. Version Control Commands

To Keystrokes Command Name
Go to the next logical version control state C-x v v vc-next-action
Show all registered files beneath a directory C-x v d vc-directory
Generate a version difference report C-x v = vc-diff
Throw away changes since the last checked-in revision C-x v u vc-revert-buffer
Retrieve a given revision in another window C-x v ~ vc-version-other-window
Display a file's change comments and history C-x v l vc-print-log
Register a file for version control C-x v i vc-register
Insert version control headers in a file C-x v h vc-insert-headers
Check out a named project snapshot C-x v r vc-retrieve-snapshot
Create a named project snapshot C-x v s vc-create-snapshot
Throw away a saved revision C-x v c vc-cancel-version
Update a GNU-style ChangeLog file C-x v a vc-update-change-log

1.13.2. Version Control Variables

Variable Default Description
vc-default-back-end `RCS Version control system used with the VC package. Valid values are the symbols 'RCS, 'CVS, and 'SCCS.
vc-display-status t If non-nil, display the version number and the locked state in the mode line.
vc-keep-workfiles t If non-nil, do not delete workfiles after you register changes with the VC system.
vc-mistrust-permissions nil If non-nil, do not assume that a file's owner ID and permission flags reflect version control system's idea of file's ownership and permission; get this information directly from VC system.
diff-switches -c -c forces context-diff format; -u is unified-diff format.
vc-make-backup-files nil If non-nil, make standard Emacs backups of files registered with VC system.
vc-consult-headers t If non-nil, determine version numbers by looking at headers in workfiles; otherwise, get this information from master file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset