Is there an API to the .gitignore capability?

2013-06-02 Thread Peng Yu
Hi, .gitignore is a flexible way to customize what dir/file to search or not to search. So it is of general use and is more flexible than what is offered by "find". I'm wondering if there is an API than I can use besides using it within git. Thanks. -- Regards, Peng -- To unsubscribe from this l

How to unignore files in certain directories?

2012-07-25 Thread Peng Yu
Hi, I have the following in .gitignore to ignore *.txt files. *.txt But I want to keep the *.txt files in, for example, data/ and all its subdirectories. I don't know should the the correct way to unignore these *.txt files. Could anybody show me the command that I should add to .gitignore? Than