svent / sift

A fast and powerful alternative to grep
https://sift-tool.org
GNU General Public License v3.0
1.6k stars 108 forks source link

Request: support to ignore files/dirs from .hgignore #55

Open MiguelLatorre opened 8 years ago

MiguelLatorre commented 8 years ago

Wow. I 've just saw #13 is already implemented. Since hg and git are friends ... It would be great to also ignore the files and directories specified in .hgignore files.

svent commented 8 years ago

Thanks for the suggestion - I am just now working on the release of version 0.6.0 that will include .gitignore support, it should be up within the next hour (I will post some comments on #13).

I do not use mercurial, but I guess there might be some more users with interest in this feature. If I can reuse some parts of the gitignore implementation, this should be easier to implement now - but I guess it will too take some time.

MiguelLatorre commented 8 years ago

Thanks for the quick response. I use git just for cloning and pulling but hg in my everyday's work. Unfortunately I know nothing about go. For a fast overview, I post the links to the docs about the two *ignore files. https://git-scm.com/docs/gitignore https://www.selenic.com/mercurial/hgignore.5.html

svent commented 8 years ago

I just read through the specification for .hgignore files - it looks nice on the first view, but the details are quite complicated.

On the other side most people seem to use only the basic functionality, so I might implement this as a "light" variant without full support of all possible options and variants.

All in all this is currently a lower priority for me as the effort seems to be quite high and I already work on other features - I will hopefully implement this in the upcoming year.