From: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
To: Alex Riesen <raa.lkml@gmail.com>
Cc: git@vger.kernel.org, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: Question about handling of heterogeneous repositories
Date: Wed, 30 Nov 2005 17:49:17 +0100 [thread overview]
Message-ID: <200511301749.18073.Josef.Weidendorfer@gmx.de> (raw)
In-Reply-To: <81b0412b0511300701w71da125am2dcc896b4693f37f@mail.gmail.com>
On Wednesday 30 November 2005 16:01, Alex Riesen wrote:
> On 11/30/05, Josef Weidendorfer <Josef.Weidendorfer@gmx.de> wrote:
> > git-mv could support this. Additional to deleting from
> > one repository and adding to the new, it could generate a remark for
> > the commit message, like:
> >
> > Added file xxx is from remote repo '/path/myrepo' with name 'yyy'
> > (file SHA1: 123445... from remote commit SHA1: 345667...)
>
> That's sounds very tempting to special-case for nested repos :)
If the repo path is an URL, this works quite general. I tried
to avoid adding local head names to this remark...
> Maybe use .git/objects/info/alternates in top-level repo?
Or better the .git/remotes namespace...
Still, this is misusing repo-local config for multiple repos.
Seems quite confusing for me.
> It may
> have side-effects of the new objects ending up in top-level repo
> if commited from top-level directory. Even then, the tools can
> be tought to stop looking for GIT_DIR in the directory closest
> to the file being commited:
> $ pwd
> .../top
> $ git-commit sub1/dir/file
> ... uses repo in .../top/sub1 instead of $(pwd)/../top/.git
>
> Looks very messy, with a potential for lots of corner cases and
> not that tempting anymore :(
git-mv would have to do exactly something like this to detect
inter-repo renames at all ;-)
But in general, this is really messy.
See my suggestion in a previous thread with similar topic
http://www.gelato.unsw.edu.au/archives/git/0511/12028.html
Josef
next prev parent reply other threads:[~2005-11-30 16:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 16:50 Question about handling of heterogeneous repositories Alex Riesen
2005-11-22 19:40 ` Andreas Ericsson
2005-11-22 23:22 ` Alex Riesen
2005-11-27 13:11 ` Petr Baudis
2005-11-29 20:47 ` Alex Riesen
[not found] ` <200511301405.19541.Josef.Weidendorfer@gmx.de>
2005-11-30 13:15 ` Alex Riesen
2005-11-30 13:58 ` Johannes Schindelin
2005-11-30 14:40 ` Josef Weidendorfer
2005-11-30 15:01 ` Alex Riesen
2005-11-30 16:49 ` Josef Weidendorfer [this message]
2005-12-01 8:16 ` 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=200511301749.18073.Josef.Weidendorfer@gmx.de \
--to=josef.weidendorfer@gmx.de \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=raa.lkml@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).