Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Grégoire PARIS" <postmaster@greg0ire.fr>
Cc: Jeff King <peff@peff.net>, git@vger.kernel.org
Subject: Re: dotfiles in git template dir are not copied
Date: Fri, 17 Feb 2017 14:12:22 -0800	[thread overview]
Message-ID: <xmqqmvdkqxfd.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <2bae8d8a-f0bf-fa8b-8ce4-6880d3490b43@greg0ire.fr> ("Grégoire PARIS"'s message of "Fri, 17 Feb 2017 22:42:43 +0100")

Grégoire PARIS <postmaster@greg0ire.fr> writes:

>> 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.



  reply	other threads:[~2017-02-17 22:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-17  9:31 dotfiles in git template dir are not copied greg0ire
2017-02-17 20:44 ` Jeff King
2017-02-17 21:42   ` Grégoire PARIS
2017-02-17 22:12     ` Junio C Hamano [this message]
2017-02-17 22:37       ` Grégoire PARIS
2017-02-17 22:44         ` Junio C Hamano
2017-02-17 23:39           ` Grégoire PARIS
2017-02-17 22:39     ` Philip Oakley
2017-02-17 22:49       ` Grégoire PARIS
2017-02-17 22:56     ` Junio C Hamano
2017-02-17 23:22       ` Grégoire PARIS
2017-02-17 23:30         ` Grégoire PARIS

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqmvdkqxfd.fsf@gitster.mtv.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=peff@peff.net \
    --cc=postmaster@greg0ire.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox