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

Re: What's cooking in git.git (Aug 2020, #02; Mon, 10)

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 11, 2020, 19:24 UTC
Message-ID
<xmqq364t9ead.fsf@gitster.c.googlers.com>
In-Reply-To
<CAPig+cRtS3iMp3zLRKBOvEchrDPrCmozndbFpWtjiosk5nqGew@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 21 quoted lines
> On Mon, Aug 10, 2020 at 3:45 PM Junio C Hamano <gitster@pobox.com> wrote:
>> * es/init-no-separate-git-dir-in-bare (2020-08-10) 1 commit
>> - init: disallow --separate-git-dir with bare repository
>>
>> "git init --separate-git-dir" can be used in an existing repository
>> with a working tree to move its .git/ directory away from the
>> working tree. Even though this re-init feature makes no sense in
>> an existing bare repository, it was not erroring out. Now it does.
>
> This description is a bit misleading since it focuses only on existing
> repositories, however, --separate-git-dir is intended for use with
> both new and existing repositories. So, perhaps the description could
> be rewritten something like this:
>
>     The purpose of "git init --separate-git-dir" is to initialize a
>     new project with the repository separate from the working tree,
>     or, in the case of an existing project, to move the repository
>     (the .git/ directory) out of the working tree. It does not make
>     sense to use --separate-git-dir with a bare repository for which
>     there is no working tree, so disallow its use with bare
>     repositories.
Thanks.
Previous: Eric SunshineNext: Jeff King
Message 3 of 18 in “What's cooking in git.git (Aug 2020, #02; Mon, 10)”
  1. Junio C HamanoAug 10, 2020
  2. Eric SunshineAug 11, 2020
  3. Junio C HamanoAug 11, 2020
  4. Jeff KingAug 11, 2020
  5. Patrick SteinhardtAug 11, 2020
  6. brian m. carlsonAug 11, 2020
  7. Sergey OrganovAug 11, 2020
  8. Junio C HamanoAug 11, 2020
  9. Sergey OrganovAug 11, 2020
  10. Sergey OrganovAug 11, 2020
  11. Junio C HamanoAug 11, 2020
  12. Sergey OrganovAug 12, 2020
  13. Junio C HamanoAug 11, 2020
  14. Sergey OrganovAug 11, 2020
  15. Junio C HamanoAug 11, 2020
  16. Taylor BlauAug 11, 2020
  17. Matheus Tavares BernardinoAug 11, 2020
  18. Junio C HamanoAug 11, 2020

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.