git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] Bad msysgit/egit interaction over dotfiles

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 14, 2009, 11:45 UTC
Message-ID
<alpine.DEB.1.00.0912141241000.4985@pacific.mpi-cbg.de>
In-Reply-To
<40aa078e0912140113w23823058h4ca691963761d3be@mail.gmail.com>
Hi,
On Mon, 14 Dec 2009, Erik Faye-Lund wrote:
Show 32 quoted lines
> On Thu, Dec 10, 2009 at 9:35 AM, Yann Dirson <ydirson@linagora.com> wrote:
>
> > [discussion revolving around ".*" being marked hidden on Windows]
> >
> > But maybe the situation is not so clear.  That "hide dotfiles" was 
> > implemented so that ".git" at first, and then ".git*" files do not 
> > clutter the view of the project.  But then, if a git repo has other 
> > dotfiles, those are really *part of* the versionned stuff, so I do not 
> > see why those should be hidden at all.  After all, the .project, 
> > .classpath, and other eclipse project files have that name on windows 
> > too, and it will indeed *confuse* people to get them hidden.
> >
> > So should we have 2 classes of dotfiles, those "private to git", and
> > the others, one class being hidden while the others are not ?  I am
> > not sure at all this would be a good idea either.  Or maybe we should
> > only get .git hidden - after all, that one is the only real metadata
> > not part of the versionned stuff itself ?
> >
> > Maybe we should add some sort of "core.hidedotfiles = dotgitonly"
> > setting, and make that the default ?  That one does not appear to
> > cause any problems to jgit, and eclipse itself has not business with
> > it, so it would IMHO make sense.
> >
> > Opinions ?
> >
> 
> IF we were to go down this path, perhaps it would be even better to
> use some sort of file-pattern or even squeeze this into gitattributes?
> I guess something like ".* +hidden" should emulate the unix behaviour
> (given that we add a hidden attribute). I don't think we have a global
> gitattributes file though, so it'd have to be added to each repo where
> the effect is desired, I guess.

Actually, I think the original request was really for all the dot files, not just for .git.

But I can see the reasoning behind hiding only .git, which I would not like to make the default, though. I would like to make Eclipse users set this explicitely in their /etc/gitconfig (possibly via the Git for Windows installer, just like the infamous -- and still broken -- core.autocrlf setting, if Sebastian is nice enough to make yet another page in the installer).

So: I would definitely take a patch implementing "core.hidedotfiles = 
dotgitonly", but would hesitate to make it the default.

Ciao, Dscho

Previous: Erik Faye-Lund
Message 9 of 9 in “[BUG] Bad msysgit/egit interaction over dotfiles”
  1. Yann DirsonDec 8, 2009
  2. Erik Faye-LundDec 8, 2009
  3. Ferry HubertsDec 8, 2009
  4. Erik Faye-LundDec 8, 2009
  5. Yann DirsonDec 8, 2009
  6. Marius Storm-OlsenDec 9, 2009
  7. Yann DirsonDec 10, 2009
  8. Erik Faye-LundDec 14, 2009
  9. Johannes SchindelinDec 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.