From: Ivan Shmakov <ivan@siamics.net>
To: emacs-devel@gnu.org
Subject: Re: Multiple checkout copies
Date: Mon, 02 Feb 2015 18:12:43 +0000 [thread overview]
Message-ID: <87oapcgp2c.fsf@violet.siamics.net> (raw)
In-Reply-To: <87sieogqgf.fsf@violet.siamics.net> (Ivan Shmakov's message of "Mon, 02 Feb 2015 17:42:40 +0000")
>>>>> Ivan Shmakov <ivan@siamics.net> writes:
[…]
> also setting up .git/objects/info/alternates under the latter
> pointing to emacs-1/.git/objects, so that all the Git commits
> available under the first are also available under the second.
> $ git clone --shared emacs-1 emacs-2
> The branches and tags of these two working copies are entirely
> independent, however.
> The --shared option is the default when both the source and the
> target directories are on the same filesystem.
I stand corrected, – the default in this case is to use
hardlinks for the Git objects; no ‘alternates’ file is involved.
Using --shared may be risky, as Git may choose to GC the
dangling objects away from emacs-1, not taking into account the
possibility of them being used in some other trees. In my case,
the source directory is often a “bare” Git repository used only
to mirror the upstream one, and thus it has no “local” commits,
which are somewhat likely to become dangling after rebases and
such. (And the upstream branches these mirrors track are
fast-forward, so git-fetch(1) isn’t going to produce any
dangling objects, either.)
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2015-02-02 18:12 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-01 20:34 Multiple checkout copies Richard Stallman
2015-02-01 21:43 ` Paul Eggert
2015-02-02 13:35 ` Richard Stallman
2015-02-02 15:19 ` Elias Mårtenson
2015-02-03 1:10 ` Richard Stallman
2015-02-03 1:32 ` Paul Eggert
2015-02-03 8:40 ` David Kastrup
2015-02-02 17:42 ` Ivan Shmakov
2015-02-02 18:12 ` Ivan Shmakov [this message]
2015-02-03 1:10 ` Richard Stallman
2015-02-03 7:14 ` Ivan Shmakov
2015-02-03 10:02 ` Achim Gratz
2015-02-03 10:22 ` David Kastrup
2015-02-03 12:53 ` Achim Gratz
2015-02-03 13:15 ` David Kastrup
2015-02-03 13:37 ` Ivan Shmakov
2015-02-03 13:57 ` David Kastrup
2015-02-03 18:30 ` Ivan Shmakov
2015-02-03 18:53 ` David Kastrup
2015-02-03 19:17 ` Ivan Shmakov
2015-02-03 19:41 ` David Kastrup
2015-02-03 20:25 ` Ivan Shmakov
2015-02-04 23:02 ` Richard Stallman
2015-02-03 17:46 ` Stefan Monnier
2015-02-03 16:50 ` Steinar Bang
2015-02-03 17:05 ` David Kastrup
2015-02-03 22:55 ` Steinar Bang
2015-02-03 23:05 ` Richard Stallman
2015-02-04 8:48 ` Achim Gratz
2015-02-04 8:55 ` David Kastrup
2015-02-04 12:02 ` Ivan Shmakov
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=87oapcgp2c.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.