Книга: Learning GNU Emacs, 3rd Edition
12.6 VC Mode Indicators
12.6 VC Mode Indicators
VC grabs a bit of the mode line for each buffer visiting a registered file and tries to use it to keep you informed of the version control state of that file. You'll notice that when a buffer is visiting a version-controlled file, the mode tags part of the mode line (shown in parentheses) shows the name of your version control system and a revision number for the file.
When those two parts are separated by a dash, the file is not yet checked out; when they're separated by a colon, the file has been checked out, and the revision number is the one the file had when you checked it out. Note that since most people use concurrent version control systems these days, in which you don't check files out or obtain locks, you can think of the dash as meaning unmodified, while the colon means there have been changes that are not yet committed to the repository.
If you don't see these indicators, the file isn't registered yet. These three states are illustrated in Figure 12-3.
Figure 12-3. Mode lines showing a file that is not under version control, one that is unchanged with respect to the repository, and one that has had changes saved but not yet committed.
- 12.1 The Uses of Version Control
- 12.2 Version Control Concepts
- 12.3 How VC Helps with Basic Operations
- 12.4 Editing Comment Buffers
- 12.5 VC Command Summary
- 12.6 VC Mode Indicators
- 12.7 Which Version Control System?
- 12.8 Individual VC Commands
- 12.9 Customizing VC
- 12.10 Extending VC
- 12.11 What VC Is Not
- 12.12 Using VC Effectively
- 12.13 Comparing with Ediff
- 12.9 Customizing VC
- 1.1.4. Model Explorer - навигатор модели
- Листинг 14.2. Использование параметра XMLWriteMode при сохранении объекта ADO.NET DataSet
- Entering and Exiting PHP Mode
- 3.4.2. The Transaction Model
- 17.2.2. Preemption Models
- 17.4.9. Runtime Control of Locking Mode
- 1.3.14 Sleep Mode
- 7.1.2 Operation of the SD Card in SPI Mode
- 9.9.1 Configuration Mode
- 9.9.2 Disable Mode
- 9.9.3 Normal Operation Mode