[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66961] [PATCH] scripts: hash: Handle repository with different VCS
From: |
Simon Tournier |
Subject: |
[bug#66961] [PATCH] scripts: hash: Handle repository with different VCS folders. |
Date: |
Wed, 29 Nov 2023 21:36:31 +0100 |
Hi Ludo,
On mar., 14 nov. 2023 at 14:44, Ludovic Courtès <ludo@gnu.org> wrote:
> How about ‘vcs-directories’ rather than ‘vcses’?
>
> Also, you can add:
>
> (define %known-vcs-directories
> '(".bzr" …))
>
> and use it to avoid repeating it.
[...]
> Maybe you can have:
>
> (define (vcs-predicate directory)
> (define directories
> (filter (lambda (metadata-directory)
> (file-exists? (in-vicinity directory metadata-directory)))
> %known-vcs-directories))
>
> (lambda (file stat)
> (vcs-file? file stat directories)))
>
> and then use that above? (That way we don’t stat these things when
> ‘exclude-vcs?’ is #false.)
Thanks for the feedback. See v2.
Cheers,
simon
PS: Sorry, I have sent twice v2; missed an option with my new
experimental setup. :-)