[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37189: Acknowledgement (25.4.1: vc-hg-ignore implementation is missi
From: |
Eli Zaretskii |
Subject: |
bug#37189: Acknowledgement (25.4.1: vc-hg-ignore implementation is missing) |
Date: |
Tue, 27 Aug 2019 10:45:36 +0300 |
> From: Wolfgang Scherer <Wolfgang.Scherer@gmx.de>
> Date: Tue, 27 Aug 2019 01:25:59 +0200
>
> +(defun vc-hg-ignore (file &optional directory remove)
> + "Ignore FILE of DIRECTORY (default is `default-directory').
> +
> +FILE is a file wildcard, relative to the root directory of DIRECTORY.
I think instead of "root directory of DIRECTORY" this should say "the
top-level directory of DIRECTORY's repository".
> +If FILE matches the regular expression
> +`vc-hg-ignore-detect-wildcard', it is appended to .hgignore as
> +is. Otherwise, FILE is escaped/expanded according to the active
> +syntax in .hgignore. If the syntax is `regexp', FILE is quoted as
> +anchored literal Python regexp and if FILE is a directory, the
> +trailing `$' is omitted. Otherwise, if the syntax is `glob',
> +FILE is used unquoted and if FILE is a directory, a `*' is
> +appended.
Our convention is to leave 2 spaces between sentences in comments and
doc strings.
> +When called from Lisp code, if DIRECTORY is non-nil, the
"When called from Lisp" implies that this function can be called in
some other way, which is generally correct only with commands. But
this function is not a command, so I'm unsure what this means here.
Thanks.