Git ignore...

Monkey Forums/Monkey Programming/Git ignore...

marksibly(Posted 2013) [#1]
Hi,

Ok, what's up with git here - having this in my .gitignore file (in the root):

Monkey

...is causing this dir and the files in it to be ignored...

modules/monkey/monkeydoc

I had kind of assumed the paths in .gitignore are relative to the dir .gitignore is in, but even if they're not, why is this affecting the monkeydoc dir, and not the upper monkey one?!? And I thought it'd be case sensitive too.

I've fixed this by prepending all my .gitignore files with '/' but it had me going for a good hour or so - the files just disappeared!

[edit]
Ok, so .gitignore paths match paths in *any* subdir, and are not just relative to the .gitignore file they're in; and I probably added the modules/monkey dir before adding Monkey to .gitignore. Solved, but a bit scary...

Also: there's quite a bit of new stuff in the develop branch of the repos if you're curious - I'm off home myself right now!
[/edit]