regex expression bug for stow

sht shot <[email protected]> Wed, 29 Sep 2021 12:45:56 +0330
Newsgroups gmane.comp.gnu.stow.bugs
Message-ID <[email protected]>
--61542ecc_6a52de36_30e9
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello. I tried whole bunch of of Perl regex expressions for stow to ignore .git and .gitignore directories when I issue the command 'stow *' but none of them will work. here's a bunch of them:
\.git
\.gitignore
\.git(ignore)?
(gitignore|git)
As you see the perl expressions are right. Also the methods that I tried to tell stow to ignore these directories are with ~/.stow-global-ignore ~/.stow-local-ignore and with the --ignore flag but nonetheless none of them worked. obviously this is such an important matter for the ones that want to use stow with git probably for the managing of dotfiles,

since the log was too long and I had to do a verbose=5 to get the right parts of the log this is a part of the log file for 'stow * --ignore='(gitignore|git)' --verbose=5
Stowing contents of dot/.git (cwd=/home/ali)

=> dot/.git
is_a_node(.)
link_task_action(.): no task
dir_task_action(.): no task\
parent_link_scheduled_for_removal(.): prefix
parent_link_scheduled_for_removal(.): returning false
is_a_node(.): really exists
dot/.git/.stow-local-ignore didn't exist
Using ignore file: /home/ali/.stow-global-ignore
Using memoized regexps from /home/ali/.stow-global-ignore
Ignore list regexp for paths: /(?^:(^|/)(^/\.stow\-local\-ignore$)(/|$))/
Ignore list regexp for segments: /(?^:^(\.git(ignore)?)$)/
Not ignoring hooks

here are the specs:
stow (GNU Stow) version 2.3.1
This is perl 5, version 34, subversion 0 (v5.34.0) built for x86_64-linux-thread-multi
5.14.8-arch1-1 X86_64

--61542ecc_6a52de36_30e9
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Hello. I tried whole bunch of of Perl regex expressions for stow to =
ignore .git and .gitignore directories when I issue the command 'stow *' =
but none of them will work. here's a bunch of them: </div><code><pre styl=
e=3D=22background-color:rgba(0,0,0,0.05);padding:0.2em 1em=22><code>=5C.g=
it<br>=5C.gitignore<br>=5C.git(ignore)=3F<br>(gitignore=7Cgit)</code></pr=
e></code><div>As you see the perl expressions are right. Also the methods=
 that I tried to tell stow to ignore these directories are with =7E/.stow=
-global-ignore =7E/.stow-local-ignore and with the --ignore flag but none=
theless none of them worked.&nbsp; obviously this is such an important ma=
tter for the ones that want to use stow with git probably for the managin=
g of dotfiles,</div><br><div>since the log was too long and I had to do a=
 verbose=3D5 to get the right parts of the log this is a part of the log =
file for 'stow * --ignore=3D'<code>(gitignore=7Cgit)' --verbose=3D5</code=
></div><div><font style=3D=22font-family:monospace=22>Stowing contents of=
 dot/.git (cwd=3D/home/ali)</font></div><br><div><font style=3D=22font-fa=
mily:monospace=22>&nbsp;=3D&gt; dot/.git</font></div><div><font style=3D=22=
font-family:monospace=22>&nbsp;is=5Fa=5Fnode(.)</font></div><div><font st=
yle=3D=22font-family:monospace=22>&nbsp;link=5Ftask=5Faction(.): no task<=
/font></div><div><font style=3D=22font-family:monospace=22>&nbsp;dir=5Fta=
sk=5Faction(.): no task=5C</font></div><div><font style=3D=22font-family:=
monospace=22>&nbsp;&nbsp;&nbsp;parent=5Flink=5Fscheduled=5Ffor=5Fremoval(=
.): prefix &nbsp;</font></div><div><font style=3D=22font-family:monospace=
=22>&nbsp;&nbsp;&nbsp;parent=5Flink=5Fscheduled=5Ffor=5Fremoval(.): retur=
ning false</font></div><div><font style=3D=22font-family:monospace=22>&nb=
sp;is=5Fa=5Fnode(.): really exists</font></div><div><font style=3D=22font=
-family:monospace=22>&nbsp;dot/.git/.stow-local-ignore didn't exist</font=
></div><div><font style=3D=22font-family:monospace=22>&nbsp;Using ignore =
file: /home/ali/.stow-global-ignore</font></div><div><font style=3D=22fon=
t-family:monospace=22>&nbsp;&nbsp;&nbsp;Using memoized regexps from /home=
/ali/.stow-global-ignore</font></div><div><font style=3D=22font-family:mo=
nospace=22>&nbsp;&nbsp;&nbsp;Ignore list regexp for paths: &nbsp;&nbsp;&n=
bsp;/(=3F=5E:(=5E=7C/)(=5E/=5C.stow=5C-local=5C-ignore=24)(/=7C=24))/</fo=
nt></div><div><font style=3D=22font-family:monospace=22>&nbsp;&nbsp;&nbsp=
;Ignore list regexp for segments: /(=3F=5E:=5E(=5C.git(ignore)=3F)=24)/</=
font></div><div><font style=3D=22font-family:monospace=22>&nbsp;Not ignor=
ing hooks</font></div><br><br><div>here are the specs:</div><div><font st=
yle=3D=22font-family:monospace=22>stow (GNU Stow) version 2.3.1</font></d=
iv><div><font style=3D=22font-family:monospace=22>This is perl 5, version=
 34, subversion 0 (v5.34.0) built for x86=5F64-linux-thread-multi</font><=
/div><div><font style=3D=22font-family:monospace=22>5.14.8-arch1-1 X86=5F=
64</font></div><img class=3D=22mailspring-open=22 alt=3D=22Sent from Mail=
spring=22 width=3D=220=22 height=3D=220=22 style=3D=22border:0; width:0; =
height:0;=22 src=3D=22https://link.getmailspring.com/open/C7D7D045-1694-4=
30B-87D7-DE608D5DD508=40getmailspring.com=3Fme=3D0be9e85d&amp;recipient=3D=
YnVnLXN0b3dAZ251Lm9yZw%3D%3D=22>
--61542ecc_6a52de36_30e9--