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

Re: .git as file pointing to directory?

From
Brad Larson <bklarson@gmail.com>
Date
Nov 4, 2010, 21:07 UTC
Message-ID
<AANLkTinMiSNCC0EUDRvxiW0V+upjEemP_xYwjcWcNC6L@mail.gmail.com>
In-Reply-To
<20101104184321.GA16929@burratino>
On Thu, Nov 4, 2010 at 1:43 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 11 quoted lines
> Hi Brad,
>
> Brad Larson wrote:
>
>> At gittogether there was some talk about having .git be a file, not a
>> folder, with contents pointing to the real .git directory.  Similar to
>> a symlink, but supported in Windows.
>
> It is called a .git file.  See gitrepository-layout(5), v1.5.6-rc0~93^2~3
> (Add platform-independent .git "symlink", 2008-02-20), and the recent
> rebase not handling core.worktree thread[1].

Thanks so much Jonathan. We were just listing the location of the folder, but prepending it with "gitdir: " fixed things.

Thanks! Brad

Show 6 quoted lines
>
> Hope that helps,
> Jonathan
>
> [1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567
>
Previous: Jonathan Nieder
Message 7 of 7 in “.git as file pointing to directory?”
  1. Brad LarsonNov 4, 2010
  2. Matthieu MoyNov 4, 2010
  3. Jens LehmannNov 4, 2010
  4. Matthieu MoyNov 4, 2010
  5. Jens LehmannNov 4, 2010
  6. Jonathan NiederNov 4, 2010
  7. Brad LarsonNov 4, 2010

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.