From: Sergio <sergio.callegari@gmail.com>
To: git@vger.kernel.org
Subject: Re: Git repository mesh?
Date: Wed, 25 Nov 2009 08:42:37 +0000 (UTC) [thread overview]
Message-ID: <loom.20091125T092917-792@post.gmane.org> (raw)
In-Reply-To: fcaeb9bf0911242007t1294bddej87b48691ea283e21@mail.gmail.com
Nguyen Thai Ngoc Duy <pclouds <at> gmail.com> writes:
>
> Hi,
>
> I work on a few machines so I have repositories on all of them. One
> repository can pull from or push to any other repositories (in case of
> push, it pushes on remote branches). I avoid a central repository
> because it's quite inconvenient when you just need to push some
> changes to a machine, you have to push it to the central repository
> then pull from that (and if the central repository is on WAN, double
> inconvenient). Maybe this model is just plain wrong, but it'd be fun
> to see if Git can work with this model.
>
> The first thing that annoys me is remote repository management.
> Everytime I add a new repository to the mesh, I need to update .config
> of all repositories.
If I remember correctly, there was in the past the idea of allowing some limited
shell variable substitution in the config file.
This would allow to have a single config for all the machines with remote
entries. Something like
[remote "host1"]
url = ssh://host1/path
fetch = +refs/heads/*:refs/remotes/host1/*
push = +refs/heads/*:refs/remotes/$hostname/*
[remote "host2"]
url = ssh://host2/path
fetch = +refs/heads/*:refs/remotes/host2/*
push = +refs/heads/*:refs/remotes/$hostname/*
...
In other terms, admitting that all the candidate machines are known at the very
start, you could start a repo on any of the host, placing in the config file all
the possible hosts. Moreover, not needing to have a different config for each
host may make it easier to manage (propagate by simple scp) or even to version
control.
To the best of my knowledge the idea was not implemented in the end, but I think
that a patch for variable substitution in the config file might still be found
on the ML.
Sergio
next prev parent reply other threads:[~2009-11-25 8:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-25 4:07 Git repository mesh? Nguyen Thai Ngoc Duy
2009-11-25 7:55 ` Matthieu Moy
2009-11-25 8:00 ` Nguyen Thai Ngoc Duy
2009-11-25 11:54 ` Matthieu Moy
2009-11-25 12:16 ` Nguyen Thai Ngoc Duy
2009-11-25 13:26 ` Jakub Narebski
2009-11-25 18:23 ` Matthieu Moy
2009-11-25 8:42 ` Sergio [this message]
2009-11-25 10:08 ` Alex Riesen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20091125T092917-792@post.gmane.org \
--to=sergio.callegari@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox