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

Re: dotfiles in git template dir are not copied

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 17, 2017, 22:12 UTC
Message-ID
<xmqqmvdkqxfd.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<2bae8d8a-f0bf-fa8b-8ce4-6880d3490b43@greg0ire.fr>
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.

Previous: Grégoire PARISNext: Grégoire PARIS
Message 4 of 12 in “dotfiles in git template dir are not copied”
  1. greg0ireFeb 17, 2017
  2. Jeff KingFeb 17, 2017
  3. Grégoire PARISFeb 17, 2017
  4. Junio C HamanoFeb 17, 2017
  5. Grégoire PARISFeb 17, 2017
  6. Junio C HamanoFeb 17, 2017
  7. Grégoire PARISFeb 17, 2017
  8. Philip OakleyFeb 17, 2017
  9. Grégoire PARISFeb 17, 2017
  10. Junio C HamanoFeb 17, 2017
  11. Grégoire PARISFeb 17, 2017
  12. Grégoire PARISFeb 17, 2017

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.