aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorSean Whitton2025-08-17 11:36:13 +0100
committerSean Whitton2025-08-17 11:36:30 +0100
commitda3973b657db46501e650fb4af4a4f3bb07c77fd (patch)
tree4266aef001ec7211db151a2916cfe7d6334d1166 /doc
parent70b5ad0192b2dd6232c1961b49e94a6620d02152 (diff)
downloademacs-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.texi31
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
1073Display a diff of the changes that a pull operation will retrieve. 1073Display a diff of all changes that a pull operation will retrieve.
1074 1074
1075If you customize @code{vc-use-incoming-outgoing-prefixes} to 1075If you customize @code{vc-use-incoming-outgoing-prefixes} to
1076non-@code{nil}, this command becomes available on @kbd{C-x v I D}. 1076non-@code{nil}, this command becomes available on @kbd{C-x v I D}.
1077 1077
1078@item M-x vc-fileset-diff-incoming
1079Display a diff of changes that a pull operation will retrieve, but
1080limited to the current fileset.
1081
1082If you customize @code{vc-use-incoming-outgoing-prefixes} to
1083non-@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
1079Display log entries for the changes that will be sent by the next 1086Display 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
1087Display a diff of the changes that will be sent by the next push 1094Display a diff of all changes that will be sent by the next push
1088operation. 1095operation.
1089 1096
1090If you customize @code{vc-use-incoming-outgoing-prefixes} to 1097If you customize @code{vc-use-incoming-outgoing-prefixes} to
1091non-@code{nil}, this command is bound to @kbd{C-x v O D}. 1098non-@code{nil}, this command is bound to @kbd{C-x v O D}.
1092 1099
1100@item M-x vc-fileset-diff-outgoing
1101Display a diff of changes that will be sent by the next push operation,
1102but limited to the current fileset.
1103
1104If you customize @code{vc-use-incoming-outgoing-prefixes} to
1105non-@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
1094Display the history of changes made in the region of file visited by 1108Display the history of changes made in the region of file visited by
1095the current buffer (@code{vc-region-history}). 1109the 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
1180buffer reporting the changes that would be pulled or pushed. You can 1194buffers reporting the changes that would be pulled or pushed. You can
1181use a prefix argument here too to specify a particular remote location. 1195use 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
1183quickly check that all and only the changes you intended to include were 1197quickly check that all and only the changes you intended to include were
1184committed and will be pushed. 1198committed 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
1204changes that would be pulled or pushed. The difference is that the
1205diffs reported are limited to the current fileset. Don't forget that
1206actual pull and push operations always affect the whole working tree,
1207not 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