git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: git-update-cache: allow dot-files
@ 2005-05-25  0:12 Junio C Hamano
  2005-05-25  0:24 ` Linus Torvalds
  0 siblings, 1 reply; 11+ messages in thread
From: Junio C Hamano @ 2005-05-25  0:12 UTC (permalink / raw)
  To: torvalds; +Cc: git

Linus, I think this is wrong.  GIT_DIR could be something other
than ".git".  I'd rather allow everything other than . and .. in
the core layer, and have Porcelain layer ignore-paths logic to
deal with "^.git/" (only when GIT_DIR is .git; otherwise
ignore-path configuration file for that particular tree needs to
say what to ignore).

    git-update-cache: allow dot-files

    diff --git a/update-cache.c b/update-cache.c
    --- a/update-cache.c
    +++ b/update-cache.c
    @@ -238,13 +238,42 @@ static int refresh_cache(void)

     /*
      * We fundamentally don't like some paths: we don't want
    - * dot or dot-dot anywhere, and in fact, we don't even want
    - * any other dot-files (.git or anything else). They
    - * are hidden, for chist sake.
    + * dot or dot-dot anywhere, and for obvious reasons don't
    + * want to recurse into ".git" either.
      *
      * Also, we don't want double slashes or slashes at the
      * end that can make pathnames ambiguous.
      */
    +static int verify_dotfile(const char *rest)
    +{
    +	/*


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

end of thread, other threads:[~2005-05-26  9:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-25  0:12 git-update-cache: allow dot-files Junio C Hamano
2005-05-25  0:24 ` Linus Torvalds
2005-05-25  0:32   ` Junio C Hamano
2005-05-25  0:44     ` [PATCH] Allow dot files in ls-files as well Junio C Hamano
2005-05-25  0:54       ` Linus Torvalds
2005-05-25  1:06         ` Junio C Hamano
2005-05-25  1:20         ` [PATCH] Allow dot files in ls-files as well (take #2) Junio C Hamano
2005-05-25  0:52     ` git-update-cache: allow dot-files Linus Torvalds
2005-05-25  1:11       ` Junio C Hamano
2005-05-26  8:37         ` Petr Baudis
2005-05-26  9:02           ` Junio C Hamano

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 NNTP newsgroup(s).