GNU bug report logs -
#55632
[PATCH] Add new user option project-vc-find-tracked-only
Previous Next
Reported by: Jan Synáček <jan.synacek <at> posteo.org>
Date: Wed, 25 May 2022 14:04:02 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #35 received at 55632 <at> debbugs.gnu.org (full text, mbox):
> Cc: 55632 <at> debbugs.gnu.org, DG <raaahh <at> gmail.com>
> Date: Thu, 02 Jun 2022 19:01:53 +0000
> From: jan.synacek <at> posteo.org
>
> ++++
> +*** New user option 'project-vc-include-untracked'.
> +When non-nil, the VC project backend includes the untracked files.
Can we please tell more about what does "include untracked files"
mean? Include where and in what sense? Bonus points for explaining
this without ever alluding to "backend", as that is not necessarily a
user-level concept in this case.
Also, is it "VC project backend" or "Project's VC backend"?
> +(defcustom project-vc-include-untracked t
> + "When non-nil, the VC project backend includes the untracked files."
> + :type 'boolean
> + :safe #'booleanp)
Same here. And new defcustom's should have a :version tag.
> - ;; Include unregistered.
> - (setq args (append args '("-c" "-o" "--exclude-standard")))
> + (setq args (append args
> + '("-c" "--exclude-standard")
> + (when project-vc-include-untracked '("-o"))))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I think 'when' is overkill here, because 'if' will do the job.
> - ;; Include unregistered.
> - (setq args (nconc args '("-mcardu" "--no-status" "-0")))
> + (args (list (concat "-mcard" (when project-vc-include-untracked "u"))
> + "--no-status"
> + "-0")))
Likewise here.
Thank you for working on this.
This bug report was last modified 2 years and 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.