Skip to content
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

.git-ftp-ignore: support / prefix #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

JasonWoof
Copy link
Owner

I see there are a few bug reports about how oddly the .git-ftp-ignore files work (since they match against an auto-generated temp file with multiple columns, not just the file list.)

This patch fixes up the syntax for the .git-ftp-ignore file so it's a bit more useful, and more like the .git-ignore syntax:

Lines starting with "/" match all path prefixes

Lines not starting with / match only full filenames (but with any path prefix)

It would be cool to have the same kind of globbing as .git-ignore, but this is enough of an improvement that I've been using it for months.

It's not perfect, for example you can't ignore all directories named "foo" that appear anywhere in the tree.

Just thought I'd throw this out there in case you all want to use it, or do something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant