FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

it doesn't work read .ignore regex from .gitignore #101

Open angelandy opened 6 years ago

angelandy commented 6 years ago

.gitignore:

.uploader_config .idea

and

def globers_to_regex(globers):
    return map(fnmatch.translate, globers)

can't not change to right regex

read from .gitignore ['.uploader_config', '.idea']

after changed: ['\.uploader\_config\Z(?ms)', '\.idea\Z(?ms)']

angelandy commented 6 years ago

I notice that ,you are using fnmatch to translate into regex, but why not using fnmatch match instead?