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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.)

EOL

On Mon, 12 Apr 2010, Jakub Narebski wrote:

Eric LEBIGOT <Eric.Lebigot@xxxxxxxxxxxxxx> writes:

Is it possible for git to track a single file that would be shared
accross branches?  Case in point: a to-do list file that describes
what has to be done in all the branches; it can be convenient to put
all the things that have to be done in a single, shared file, while
keeping this to-do list in sync with the code (so that it lists what
has been done, and what remains to be done).  Committing in a branch
would in effect also commit the shared file in the other branches
(another possibility may be to have in effect many "trees" in a single
git directory, with a specific tree for the to-do list).

Is this something git can do?

Look how it is done in git.git repository.  If I remember it
correctly, Junio manages separate small repository inside
non-versioned Meta/ directory inside git.git checkout, which contains
TODO list and some scripts to help maintenance (e.g. to help generate
"What's in..." and "What's cooking..." emails).

For distribution this repository is pushed into independent 'todo'
branch in git.git repository.  It doesn't share commits with other
"normal" branches, i.e. 'maint', 'master', 'next', 'pu'.

The 'todo' branch can be seen e.g. here:
 http://git.kernel.org/?p=git/git.git;a=shortlog;h=refs/heads/todo

The history of TODO file can be viewed e.g. here:
 http://git.kernel.org/?p=git/git.git;a=history;f=TODO;hb=refs/heads/todo


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]