Reputation: 11
I am developing a system to mimic the gitignore functionality. I will add certain rules ( gitignore pattern format) to a file and the file will be input to a script (perl) file, when there is any commit the script file parses the rules and if any rule matched then it will send an email.
For this I need to know basically where to find the gitignore source code and how its been implemented in git so that I can have similar implementation in my proj.
Upvotes: 1
Views: 268
Reputation: 2053
I believe the code for gitignore processing is around somewhere here: https://github.com/git/git/blob/master/builtin/check-ignore.c#L68
Upvotes: 1