diff options
| author | Eli Zaretskii | 2020-02-28 18:23:22 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2020-02-28 18:23:22 +0200 |
| commit | d767c357ca8ca59097d8ee7c06309efc1688f368 (patch) | |
| tree | 5a0ac81bb9fbc7833fe252cf28a25ed35ca11d4f | |
| parent | ff729e3f975f8391658cf22c4715552054ed25c1 (diff) | |
| parent | 4dec693f703464bab68ec751f341927c5489d592 (diff) | |
| download | emacs-d767c357ca8ca59097d8ee7c06309efc1688f368.tar.gz emacs-d767c357ca8ca59097d8ee7c06309efc1688f368.zip | |
Merge branch 'emacs-27' of git.savannah.gnu.org:/srv/git/emacs into emacs-27
| -rw-r--r-- | lisp/vc/vc-cvs.el | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el index b6afda69198..e8231ecb289 100644 --- a/lisp/vc/vc-cvs.el +++ b/lisp/vc/vc-cvs.el | |||
| @@ -1222,23 +1222,24 @@ is non-nil." | |||
| 1222 | 1222 | ||
| 1223 | (defun vc-cvs-ignore (file &optional directory _remove) | 1223 | (defun vc-cvs-ignore (file &optional directory _remove) |
| 1224 | "Ignore FILE under CVS. | 1224 | "Ignore FILE under CVS. |
| 1225 | FILE is either absolute or relative to DIRECTORY. The basename | 1225 | FILE is either absolute or relative to DIRECTORY. The non-directory |
| 1226 | of FILE is written unmodified into the ignore file and is | 1226 | part of FILE is written unmodified into the ignore file and is |
| 1227 | therefore evaluated by CVS as an ignore pattern which follows | 1227 | therefore evaluated by CVS as an ignore pattern which follows |
| 1228 | glob(7) syntax. If the pattern should match any of the special | 1228 | glob(7) syntax. If the pattern should match any of the special |
| 1229 | characters ‘?*[\\\’ literally, they must be escaped with a | 1229 | characters `?*[\\' literally, they must be escaped with a |
| 1230 | backslash. | 1230 | backslash. |
| 1231 | 1231 | ||
| 1232 | CVS processes one ignore file for each subdirectory. Patterns | 1232 | CVS processes one ignore file for each subdirectory. Patterns |
| 1233 | are separated by whitespace and only match files in the same | 1233 | are separated by whitespace and only match files in the same |
| 1234 | directory. Since FILE can be a relative filename with leading | 1234 | directory. Since FILE can be a relative filename with leading |
| 1235 | diretories, FILE is expanded against DIRECTORY to determine the | 1235 | directories, FILE is expanded against DIRECTORY to determine the |
| 1236 | correct absolute filename. The directory name of this path is | 1236 | correct absolute filename. The directory part of the resulting name |
| 1237 | then used to determine the location of the ignore file. The base | 1237 | is then used to determine the location of the ignore file. The |
| 1238 | name of this path is used as pattern for the ignore file. | 1238 | non-directory part of the name is used as pattern for the ignore file. |
| 1239 | 1239 | ||
| 1240 | Since patterns are whitespace sparated, it is usually better to | 1240 | Since patterns are whitespace-separated, filenames containing spaces |
| 1241 | replace spaces in filenames with question marks ‘?’." | 1241 | cannot be represented directly. A work-around is to replace such |
| 1242 | spaces with question marks." | ||
| 1242 | (setq file (directory-file-name (expand-file-name file directory))) | 1243 | (setq file (directory-file-name (expand-file-name file directory))) |
| 1243 | (vc-cvs-append-to-ignore (file-name-directory file) (file-name-nondirectory file))) | 1244 | (vc-cvs-append-to-ignore (file-name-directory file) (file-name-nondirectory file))) |
| 1244 | 1245 | ||