{"thread":{"id":"10050","subject":"ignoring non-submodule subrepositories","startedAt":"2007-09-27T17:07:00Z","lastAt":"2007-09-27T19:29:15Z","messageCount":2,"participants":["martin f krafft","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"54176","messageId":"20070927170700.GA10250@lapse.madduck.net","threadId":"10050","inReplyTo":null,"subject":"ignoring non-submodule subrepositories","fromName":"martin f krafft","fromEmail":"madduck@madduck.net","sentAt":"2007-09-27T17:07:00Z","receivedAt":"2007-09-27T17:07:00Z","isPatch":false,"sender":{"key":"madduck@madduck.net","avatar":null},"body":"Hello,\n\nI have a repository inside another, and for several reasons, I do\nnot want to use git-submodule in this case. My issue is that\ngit-status lists the subrepository as untracked.\n\nOf course, I could add it to .gitignore alright, but instead\nI wonder whether it would not make sense to ignore subdirectories\nthemselves containing .git/ directories, not explicitly so as to not\nmess with git-submodule, but implicitly.\n\nThoughts?\n\n-- \nmartin;              (greetings from the heart of the sun.)\n  \\____ echo mailto: !#^.\"<*>\"|tr \"<*> mailto:\" net@madduck\n \nnever underestimate the power of human stupidity.\n \nspamtraps: madduck.bogus@madduck.net\n"},{"id":"54189","messageId":"7vy7eructw.fsf@gitster.siamese.dyndns.org","threadId":"10050","inReplyTo":"20070927170700.GA10250@lapse.madduck.net","subject":"Re: ignoring non-submodule subrepositories","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-09-27T19:29:15Z","receivedAt":"2007-09-27T19:29:15Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"martin f krafft <madduck@madduck.net> writes:\n\n> I have a repository inside another, and for several reasons, I do\n> not want to use git-submodule in this case. My issue is that\n> git-status lists the subrepository as untracked.\n>\n> Of course, I could add it to .gitignore alright, but instead\n> I wonder whether it would not make sense to ignore subdirectories\n> themselves containing .git/ directories, not explicitly so as to not\n> mess with git-submodule, but implicitly.\n>\n> Thoughts?\n\nI've had a line \"/Meta\" in my .git/info/excludes ever since I\nstarted to maintain the 'todo' branch (which is managed in an\nindependent repository situated there, and pushed into the\n'todo' branch of git.git), and having to have that line never\nbothered me.\n\nWhile I do not think of a reason offhand not to ignore anything\nthat has .git/ and is not a subproject, other than that ignoring\nmight interfere your adding such a separate project as a\nsubproject.  I know \"git add\" would countermand the ignore list,\nbut not listing means it lets you forget.\n\nThinking about it more, such a separate project is not even\nspecial.  We list untracked files to remind you that you might\nwant to add them.  Why should a separate project that is not\ntracked by us (i.e. a potential superproject) be treated any\ndifferently from other untracked things on the filesystem?\n\nSo, my thoughts are moderate \"negative\" at this point, but\nothers may have better arguments..\n"}]}