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

Re: Is it possible to have a file shared between branches?

From
Wincent Colaiuta <win@wincent.com>
Date
Apr 12, 2010, 15:06 UTC
Message-ID
<FEC79299-7309-4665-8CD0-10CD0E7EC033@wincent.com>
In-Reply-To
<alpine.OSX.2.01.1004121639230.60420@kroll.spectro.jussieu.fr>
El 12/04/2010, a las 16:46, Eric LEBIGOT escribió:
Show 7 quoted lines
> Thank you!  I can see what is done in the git.git repository, thanks to your pointer, and it looks like I'm trying to get from git.  But how do you create and manage such an independent 'todo' branch?  This branch appears on the same level as master, in the pages you gave, but you also mention a "non versioned Meta/ directory".  Does this mean that the file structure is like the following?
> 
> ./.git
> Meta/.git
> Meta/<todo files>
> 
> If yes, how do all branches appear at the same level in http://git.kernel.org/?p=git/git.git;a=summary ?  If no, how was the 'todo' branch created?  (I would love to have the todo file in the same directory as the rest.)
You can create a parentless branch as explained here:
  http://madduck.net/blog/2007.07.11:creating-a-git-branch-without-ancestry/

Cheers, Wincent

Previous: Eric LEBIGOTNext: Junio C Hamano
Message 6 of 7 in “Is it possible to have a file shared between branches?”
  1. Eric LEBIGOTApr 12, 2010
  2. Ævar Arnfjörð BjarmasonApr 12, 2010
  3. Wincent ColaiutaApr 12, 2010
  4. Jakub NarebskiApr 12, 2010
  5. Eric LEBIGOTApr 12, 2010
  6. Wincent ColaiutaApr 12, 2010
  7. Junio C HamanoApr 12, 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.