-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot stow ".gitignore" #75
Comments
The point is that typically when stowing from a package which is a git repo, the .gitignore at the top of that repo is intended only for use within the git repo, and should not be stowed into Hope that makes sense, and sorry for the slow reply! Closing for now, but happy to reopen if anything is unclear. |
Haha no worries I've seen / done worse. Thanks for the alternate solution, I wasn't aware of .stow-local-ignore. |
@fenugrec commented on April 5, 2021 1:09 AM:
😆 Thanks for your patience!
Yep, fair point. We don't actually have a FAQ yet, but there is a section on Ignore Lists in the manual. If you have any ideas for how to improve that, I'd be happy to hear them! |
this allows us to use a global gitignore. See more at aspiers/stow#75
Hmm.. I must not be as savvy as OP, but can't seem to understand the issue. I wonder if I am doing something wrong? I put my |
I don't have .gitignore file in the .stow-global-ignore and yet I am unable to stow it. Here is my verbose output:
It seems that segments ignore list is the reason, that .gitignore isn't stowing, if I am not worng. |
Hello there. I also can't stow the |
quoting the first post :
that's how I solved it |
@afrid18 @nineboxes Just create an empty |
Resolution identified via aspiers/stow#75
stow has a builtin ignore list: Ignore list regexp for paths: /(?^:(^|/)(^/README.*|^/LICENSE.*|^/\.stow\-local\-ignore$|^/COPYING)(/|$))/ Ignore list regexp for segments: /(?^:^(\.hg|CVS|.+,v|\.gitignore|\.svn|#.*#|\.cvsignore|\.#.+|_darcs|.+~|\.git|RCS)$)/ ref: aspiers/stow#75 I thought I was going crazy trying to add a global `.gitignore` and show kept skipping it. Easiest solution was to place a empty `.stow-local-ignore` in the same dir as the `.gitingore` to wipe out the default ignore list for stow.
This is still an issue with the --dotfiles option. I understand the rationale of ignoring |
I did and fixes it, but it seems to me stow should rightly ignore .gitignore by default, but not dot-gitignore.
In other words, checking if a file should be skipped should happen _before_ replacing the dot- string in the filename with a literal dot, which how I expected it to behave.
…On Sun, 8 Sep 2024, at 11:02, Adam Spiers wrote:
@1player <https://github.com/1player> Did you try this <#75 (comment)>?
—
Reply to this email directly, view it on GitHub <#75 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAFIPSDDZT7EZUQD2O7HEHDZVQOCTAVCNFSM6AAAAABN2ZM6JKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWGYZDIMJTGQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I think you are right, because something called |
Fix submitted as #116, please can you test? |
Heh, I just figured it out while writing this (is there a "rubberduck" label ?). So it's not really a bug report anymore, but I'd like to discuss it anyway - feel free to close at any time.
I was trying to stow
~/.gitconfig
and~/.gitignore
. The first worked, but I just could not make it work with .gitignore !Turning on -vvvvv revealed the explanation :
I understand the reason for ignoring those in the root of the "stow directory", but I'm not sure when they would be a problem coming from within a package ?
Unless those regexp are mainly so that --adopt doesn't pick up all that trash ?
I know how to work around this ; just add --dotfiles in .stowrc , and rename files to
dot-gitconfig
anddot-gitignore
, so as I said this isn't really an issue.The text was updated successfully, but these errors were encountered: