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

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

 



On Mon, Apr 12, 2010 at 09:10, Eric LEBIGOT <Eric.Lebigot@xxxxxxxxxxxxxx> wrote:
> 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?

Sure. But it doesn't do it automatically. To do it you'd write a
little script to cherry-pick any commit to the TODO across all your
branches on commit.

That's now how I'd do it. I'd just add a TODO submodule or just always
work on the TODO in one branch.
--
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]