Re: dotfiles in git template dir are not copied

2 messages, 2 authors, 2017-02-17 · open the first message on its own page

Re: dotfiles in git template dir are not copied

From: Junio C Hamano <hidden>
Date: 2017-02-17 22:12:30

Grégoire PARIS [off-list ref] writes:
quoted
You could, for example, have your template directory itself be a git 
repository.

I can and I do and indeed, that might be the reason behind this.
An embedded .git was _not_ the reason behind the current behaviour
when we wrote it.  The primary reason is because we did not ship and
did not plan to ship anything .dot in our standard template set and
there wasn't any reason to copy what we were not going to ever ship
;-).

As a justification after the fact, "you wouldn't want to copy .git
do you?" is a good one, though, and I do not think we should change
the behaviour to copy files whose names begin with a dot.

Re: dotfiles in git template dir are not copied

From: Grégoire PARIS <hidden>
Date: 2017-02-17 22:37:36

 > I do not think we should change the behaviour
 > to copy files whose names begin with a dot.

So bug turned feature it is :)

I amended my commit message accordingly.

In my case, my template dir is not at the root of the repository where 
it is versioned, so it would not be a problem for me, but I think some 
people might use this feature to add tests/docs without having them copied.

my template dir repository : https://github.com/greg0ire/git_template
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help