On Sun, Apr 07, 2013 at 04:10:14PM -0400, Christopher J. Madsen via RT wrote:
Show quoted text> <URL:
https://rt.cpan.org/Ticket/Display.html?id=84491 >
>
> You're correct, but the solution is not obvious. What exactly should follow_symlinks = 1 mean to Git::GatherDir? Should it assume that the symlinked directory is also a Git repo?
No, it should assume it's something it should gather, just like everything
else, I think. (this is assuming it doesn't point to outside the
repository itself, which would be a surprising and unexpected thing, and
*should* fail.)
Show quoted text> I think the best solution is to remove the follow_symlinks option entirely, and just make Git::GatherDir skip symlinks and emit a warning. To suppress the warning, add the symlink to exclude_filename (or exclude_match).
>
> To gather the symlinked files, add another instance of GatherDir or Git::GatherDir with appropriate root & prefix options.
Why should it be necessary to use a separate gather plugin to get symlinks?
git can see them, so we should be able to gather them in the same plugin,
shouldn't we?