aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2020-04-14 02:24:51 +0300
committerJuri Linkov2020-04-14 02:24:51 +0300
commit086faceb1c395d24487c20bcb32ca710291bee41 (patch)
tree69e88b26ee151b2361cd4ccc5e6ba481f79d9577
parentcdbb37f628aad1455af349d703c5838827bea8b3 (diff)
downloademacs-086faceb1c395d24487c20bcb32ca710291bee41.tar.gz
emacs-086faceb1c395d24487c20bcb32ca710291bee41.zip
* lisp/vc/vc.el (vc-deduce-fileset): Improve docstring (bug#34949).
-rw-r--r--lisp/vc/vc.el34
1 files changed, 22 insertions, 12 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index d4323d59eb3..c640ba0420e 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -1012,23 +1012,33 @@ Within directories, only files already under version control are noticed."
1012 allow-unregistered 1012 allow-unregistered
1013 state-model-only-files) 1013 state-model-only-files)
1014 "Deduce a set of files and a backend to which to apply an operation. 1014 "Deduce a set of files and a backend to which to apply an operation.
1015Return (BACKEND FILESET FILESET-ONLY-FILES STATE CHECKOUT-MODEL). 1015Return a list of the form:
1016 1016
1017NOT-STATE-CHANGING if non-nil, means that the operation 1017 (BACKEND FILESET FILESET-ONLY-FILES STATE CHECKOUT-MODEL)
1018requesting the fileset doesn't intend to change VC state,
1019such as printing the log or showing the diff.
1020 1018
1021If we're in VC-dir mode, FILESET is the list of marked files, 1019where the last 3 members are optional, and must be present only if
1022or the directory if no files are marked. 1020STATE-MODEL-ONLY-FILES is non-nil.
1023Otherwise, if in a buffer visiting a version-controlled file, 1021
1024FILESET is a single-file fileset containing that file. 1022NOT-STATE-CHANGING, if non-nil, means that the operation
1023requesting the fileset doesn't intend to change the VC state,
1024such as when printing the log or showing the diffs.
1025
1026If the current buffer is in `vc-dir' or Dired mode, FILESET is the
1027list of marked files, or the current directory if no files are
1028marked.
1029Otherwise, if the current buffer is visiting a version-controlled
1030file, FILESET is a single-file list containing that file's name.
1025Otherwise, if ALLOW-UNREGISTERED is non-nil and the visited file 1031Otherwise, if ALLOW-UNREGISTERED is non-nil and the visited file
1026is unregistered, FILESET is a single-file fileset containing it. 1032is unregistered, FILESET is a single-file list containing the
1033name of the visited file.
1027Otherwise, throw an error. 1034Otherwise, throw an error.
1028 1035
1029STATE-MODEL-ONLY-FILES if non-nil, means that the caller needs 1036STATE-MODEL-ONLY-FILES, if non-nil, means that the caller needs
1030the FILESET-ONLY-FILES STATE and MODEL info. Otherwise, that 1037the FILESET-ONLY-FILES, STATE, and CHECKOUT-MODEL info, where
1031part may be skipped. 1038FILESET-ONLY-FILES means only files in similar VC states,
1039possible values of STATE are explained in `vc-state', and MODEL in
1040`vc-checkout-model'. Otherwise, these 3 members may be omitted from
1041the returned list.
1032 1042
1033BEWARE: this function may change the current buffer." 1043BEWARE: this function may change the current buffer."
1034 (let (backend) 1044 (let (backend)