Next: , Previous: , Up: バージョンコントロール   [Contents][Index]


30.1.3 バージョンコントロール下での基本的な編集

Most VC commands operate on VC filesets. A VC fileset is a collection of one or more files that a VC operation acts upon. When you type VC commands in a buffer visiting a version-controlled file, the VC fileset is simply that one file. When you type them in a VC Directory buffer, and some files in it are marked, the VC fileset consists of the marked files (see VC Directoryモード). Likewise, when you invoke a VC command from a Dired buffer, the VC fileset consists of the marked files (see Diredでのマークとフラグ), defaulting to the file shown on the current line if no files are marked.

With modern changeset-based version control systems (see バージョンコントロールにおける変更セットベースとファイルベース), such as Git, Mercurial, and Bazaar, VC commands handle multi-file VC filesets as a group. For example, committing a multi-file VC fileset generates a single revision, containing the changes to all those files. On older file-based version control systems like CVS, each file in a multi-file VC fileset is handled individually; thus, committing a fileset generates one revision for each changed file in the fileset.

C-x v v

カレントVCファイルセットにたいして、次の適切なバージョンコントロール操作を処理します。

The principal VC command is a multi-purpose command, C-x v v (vc-next-action), which performs the most appropriate action on the current VC fileset: either registering it with a version control system, or committing it, or unlocking it, or merging changes into it. The precise actions for each situation are described in detail in the following subsections. You can use C-x v v either in a file-visiting buffer, in a Dired buffer, or in a VC Directory buffer; in the latter two cases the command operates on the fileset consisting of the marked files. You can also use C-x v v, in a buffer with patches under Diff Mode (see Diffモード), in which case the command operates on the files whose diffs are shown in the buffer.

VCファイルセットは、ファイルを閲覧したりvisitするためのグループ機能として使用される、名前つきファイルセット(named filesets)とは別の物だということに注意してください(ファイルセットを参照してください)。名前つきファイルセットとは異なり、VCファイルセットは名前をもたず、セッションをまたいで持続しません。


Next: Log Entryバッファーの機能, Previous: バージョンコントロールとモードライン, Up: バージョンコントロール   [Contents][Index]

This page has generated for branch:master, commit:762705fb24fd90db318f2e51c1e762452d26f7e2 to check Japanese translation.