Skip .gitignore files that already being tracked#4
Skip .gitignore files that already being tracked#4weynhamz wants to merge 1 commit intobehdad:masterfrom
Conversation
|
Updated the PR, fixed a mistake. |
|
Weird. I left a comment on your PR but I don't see it. What I said was: if a directory has a handwritten .gitignore then it's Makefile.am should NOT include git.mk. |
|
@behdad you left it on the commit which just get orphared by the new one. It does not harm to have this check anyway, sometimes we might want to inlude the git.mk in Makefile.am in order to get the subdirectory .gitignore generated. This originally intend to fix the submodule problem your previous commit tried to but failed(do not know why, it does not work in the gitg project which has libgd as submodule). |
|
@techlivezheng can you debug why it's not working at least? I can't get past configure for any libgd-using app... |
|
@behdad Okay, will let you know. |
|
@behdad Your fix in caee737 only makes sure that |
|
@techlivezheng this is what I'm saying: libgd/Makefile.am must NOT include git.mk! |
|
I believe the reason it did before was that before the submodule fix, build could be broken if any subdirectory didn't include git.mk. It's not the case anymore. But I can see how your solution can be helpful too. I'll go ahead and take it I guess. Right now git.mk never calls git, but that's not a huge deal I suppose. |
@behdad We can do this for our own sub-direcotry, the problem is you can not control a submodule's directory, it is a top-directory for its own project but a sub-directory for ours. |
The generated recipe is meant for .gitignore files that are not supposed to be tracked by git, so, it makes sense to skip all the .gitignore files that already tracked by git.