git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* ignoring non-submodule subrepositories
@ 2007-09-27 17:07 martin f krafft
  2007-09-27 19:29 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: martin f krafft @ 2007-09-27 17:07 UTC (permalink / raw)
  To: git discussion list

[-- Attachment #1: Type: text/plain, Size: 669 bytes --]

Hello,

I have a repository inside another, and for several reasons, I do
not want to use git-submodule in this case. My issue is that
git-status lists the subrepository as untracked.

Of course, I could add it to .gitignore alright, but instead
I wonder whether it would not make sense to ignore subdirectories
themselves containing .git/ directories, not explicitly so as to not
mess with git-submodule, but implicitly.

Thoughts?

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
never underestimate the power of human stupidity.
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ignoring non-submodule subrepositories
  2007-09-27 17:07 ignoring non-submodule subrepositories martin f krafft
@ 2007-09-27 19:29 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2007-09-27 19:29 UTC (permalink / raw)
  To: martin f krafft; +Cc: git discussion list

martin f krafft <madduck@madduck.net> writes:

> I have a repository inside another, and for several reasons, I do
> not want to use git-submodule in this case. My issue is that
> git-status lists the subrepository as untracked.
>
> Of course, I could add it to .gitignore alright, but instead
> I wonder whether it would not make sense to ignore subdirectories
> themselves containing .git/ directories, not explicitly so as to not
> mess with git-submodule, but implicitly.
>
> Thoughts?

I've had a line "/Meta" in my .git/info/excludes ever since I
started to maintain the 'todo' branch (which is managed in an
independent repository situated there, and pushed into the
'todo' branch of git.git), and having to have that line never
bothered me.

While I do not think of a reason offhand not to ignore anything
that has .git/ and is not a subproject, other than that ignoring
might interfere your adding such a separate project as a
subproject.  I know "git add" would countermand the ignore list,
but not listing means it lets you forget.

Thinking about it more, such a separate project is not even
special.  We list untracked files to remind you that you might
want to add them.  Why should a separate project that is not
tracked by us (i.e. a potential superproject) be treated any
differently from other untracked things on the filesystem?

So, my thoughts are moderate "negative" at this point, but
others may have better arguments..

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-27 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-27 17:07 ignoring non-submodule subrepositories martin f krafft
2007-09-27 19:29 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).