From: Jeff King <peff@peff.net>
To: greg0ire <postmaster@greg0ire.fr>
Cc: git@vger.kernel.org
Subject: Re: dotfiles in git template dir are not copied
Date: Fri, 17 Feb 2017 15:44:11 -0500 [thread overview]
Message-ID: <20170217204411.2yixhuazgczxmmxa@sigill.intra.peff.net> (raw)
In-Reply-To: <ebd661c3-7d99-54d2-dda9-09c4a76cfe93@greg0ire.fr>
On Fri, Feb 17, 2017 at 10:31:37AM +0100, greg0ire wrote:
> I noticed yesterday that dotfiles inside the directory configured in
> init.templatedir are not copied when creating a new repository.
>
> Here is the line I think is responsible for this behavior :
> https://github.com/git/git/blob/master/builtin/init-db.c#L48
>
> Is it a bug or a feature?
I think it's probably a feature. You could, for example, have your
template directory itself be a git repository. You would not want to
copy the ".git" directory around.
I wouldn't be surprised if the documentation could be improved, though.
-Peff
next prev parent reply other threads:[~2017-02-17 20:44 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 [this message]
2017-02-17 21:42 ` Grégoire PARIS
2017-02-17 22:12 ` Junio C Hamano
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170217204411.2yixhuazgczxmmxa@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--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.
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).