diff options
| author | Sean Whitton | 2025-08-17 11:36:13 +0100 |
|---|---|---|
| committer | Sean Whitton | 2025-08-17 11:36:30 +0100 |
| commit | da3973b657db46501e650fb4af4a4f3bb07c77fd (patch) | |
| tree | 4266aef001ec7211db151a2916cfe7d6334d1166 /doc | |
| parent | 70b5ad0192b2dd6232c1961b49e94a6620d02152 (diff) | |
| download | emacs-da3973b657db46501e650fb4af4a4f3bb07c77fd.tar.gz emacs-da3973b657db46501e650fb4af4a4f3bb07c77fd.zip | |
VC: New commands for incoming and outgoing fileset diffs
* lisp/vc/vc.el (vc-fileset-diff-incoming)
(vc-fileset-diff-outgoing): New commands.
(vc-root-diff-incoming): Refactor to call
vc-fileset-diff-incoming.
(vc-root-diff-outgoing): Refactor to call
vc-fileset-diff-outgoing.
* lisp/vc/vc-hooks.el (vc-incoming-prefix-map)
(vc-outgoing-prefix-map): Bind the new commands.
* doc/emacs/maintaining.texi (VC Change Log):
* etc/NEWS: Document the new commands.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/maintaining.texi | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index ffa3b7f2a58..4e531805f26 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi | |||
| @@ -1070,11 +1070,18 @@ non-@code{nil}, @kbd{C-x v I} becomes a prefix key, and | |||
| 1070 | @code{vc-log-incoming} becomes bound to @kbd{C-x v I L}. | 1070 | @code{vc-log-incoming} becomes bound to @kbd{C-x v I L}. |
| 1071 | 1071 | ||
| 1072 | @item M-x vc-root-diff-incoming | 1072 | @item M-x vc-root-diff-incoming |
| 1073 | Display a diff of the changes that a pull operation will retrieve. | 1073 | Display a diff of all changes that a pull operation will retrieve. |
| 1074 | 1074 | ||
| 1075 | If you customize @code{vc-use-incoming-outgoing-prefixes} to | 1075 | If you customize @code{vc-use-incoming-outgoing-prefixes} to |
| 1076 | non-@code{nil}, this command becomes available on @kbd{C-x v I D}. | 1076 | non-@code{nil}, this command becomes available on @kbd{C-x v I D}. |
| 1077 | 1077 | ||
| 1078 | @item M-x vc-fileset-diff-incoming | ||
| 1079 | Display a diff of changes that a pull operation will retrieve, but | ||
| 1080 | limited to the current fileset. | ||
| 1081 | |||
| 1082 | If you customize @code{vc-use-incoming-outgoing-prefixes} to | ||
| 1083 | non-@code{nil}, this command becomes available on @kbd{C-x v I =}. | ||
| 1084 | |||
| 1078 | @item C-x v O | 1085 | @item C-x v O |
| 1079 | Display log entries for the changes that will be sent by the next | 1086 | Display log entries for the changes that will be sent by the next |
| 1080 | ``push'' operation (@code{vc-log-outgoing}). | 1087 | ``push'' operation (@code{vc-log-outgoing}). |
| @@ -1084,12 +1091,19 @@ non-@code{nil}, @kbd{C-x v O} becomes a prefix key, and | |||
| 1084 | @code{vc-log-outgoing} becomes bound to @kbd{C-x v O L}. | 1091 | @code{vc-log-outgoing} becomes bound to @kbd{C-x v O L}. |
| 1085 | 1092 | ||
| 1086 | @item M-x vc-root-diff-outgoing | 1093 | @item M-x vc-root-diff-outgoing |
| 1087 | Display a diff of the changes that will be sent by the next push | 1094 | Display a diff of all changes that will be sent by the next push |
| 1088 | operation. | 1095 | operation. |
| 1089 | 1096 | ||
| 1090 | If you customize @code{vc-use-incoming-outgoing-prefixes} to | 1097 | If you customize @code{vc-use-incoming-outgoing-prefixes} to |
| 1091 | non-@code{nil}, this command is bound to @kbd{C-x v O D}. | 1098 | non-@code{nil}, this command is bound to @kbd{C-x v O D}. |
| 1092 | 1099 | ||
| 1100 | @item M-x vc-fileset-diff-outgoing | ||
| 1101 | Display a diff of changes that will be sent by the next push operation, | ||
| 1102 | but limited to the current fileset. | ||
| 1103 | |||
| 1104 | If you customize @code{vc-use-incoming-outgoing-prefixes} to | ||
| 1105 | non-@code{nil}, this command becomes available on @kbd{C-x v O =}. | ||
| 1106 | |||
| 1093 | @item C-x v h | 1107 | @item C-x v h |
| 1094 | Display the history of changes made in the region of file visited by | 1108 | Display the history of changes made in the region of file visited by |
| 1095 | the current buffer (@code{vc-region-history}). | 1109 | the current buffer (@code{vc-region-history}). |
| @@ -1176,13 +1190,22 @@ version control system can be a branch name. | |||
| 1176 | @findex vc-root-diff-outgoing | 1190 | @findex vc-root-diff-outgoing |
| 1177 | The closely related commands @code{vc-root-diff-incoming} and | 1191 | The closely related commands @code{vc-root-diff-incoming} and |
| 1178 | @code{vc-root-diff-outgoing} are the diff analogues of | 1192 | @code{vc-root-diff-outgoing} are the diff analogues of |
| 1179 | @code{vc-log-incoming} and @code{vc-log-outgoing}. These display a diff | 1193 | @code{vc-log-incoming} and @code{vc-log-outgoing}. These display diff |
| 1180 | buffer reporting the changes that would be pulled or pushed. You can | 1194 | buffers reporting the changes that would be pulled or pushed. You can |
| 1181 | use a prefix argument here too to specify a particular remote location. | 1195 | use a prefix argument here too to specify a particular remote location. |
| 1182 | @code{vc-root-diff-outgoing} is useful as a way to preview your push and | 1196 | @code{vc-root-diff-outgoing} is useful as a way to preview your push and |
| 1183 | quickly check that all and only the changes you intended to include were | 1197 | quickly check that all and only the changes you intended to include were |
| 1184 | committed and will be pushed. | 1198 | committed and will be pushed. |
| 1185 | 1199 | ||
| 1200 | @findex vc-fileset-diff-incoming | ||
| 1201 | @findex vc-fileset-diff-outgoing | ||
| 1202 | The commands @code{vc-fileset-diff-incoming} and | ||
| 1203 | @code{vc-fileset-diff-outgoing} are very similar. They also display | ||
| 1204 | changes that would be pulled or pushed. The difference is that the | ||
| 1205 | diffs reported are limited to the current fileset. Don't forget that | ||
| 1206 | actual pull and push operations always affect the whole working tree, | ||
| 1207 | not just the current fileset. | ||
| 1208 | |||
| 1186 | @cindex VC log buffer, commands in | 1209 | @cindex VC log buffer, commands in |
| 1187 | @cindex vc-log buffer | 1210 | @cindex vc-log buffer |
| 1188 | In the @file{*vc-change-log*} buffer, you can use the following keys | 1211 | In the @file{*vc-change-log*} buffer, you can use the following keys |