bug-stow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

regex expression bug for stow


From: sht shot
Subject: regex expression bug for stow
Date: Wed, 29 Sep 2021 12:45:56 +0330

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
Sent from Mailspring
reply via email to

[Prev in Thread] Current Thread [Next in Thread]