From: Ken Raeburn <raeburn@raeburn.org>
To: "emacs-devel@gnu.org discussions" <emacs-devel@gnu.org>
Subject: Re: Switching from old git tree
Date: Sat, 15 Nov 2014 13:26:13 -0500 [thread overview]
Message-ID: <56A2CB10-ED25-4C18-824A-683BBF2614CD@raeburn.org> (raw)
In-Reply-To: <87d28oom90.fsf@fencepost.gnu.org>
On Nov 15, 2014, at 04:18, David Kastrup <dak@gnu.org> wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Kenneth Raeburn <raeburn@raeburn.org>
>>> Date: Sat, 15 Nov 2014 03:43:05 -0500
>>>
>>> After creating your "main" clone of the new upstream repository,
>>> clone *that* one locally (use the "-s" option to save disk space)
>>
>> Careful: kids are listening! The -s option to clone has a caveat on
>> its man page, which, to me sounds as "Kids, don't try this at home!"
>
> -s does not save disk space over the default _unless_ your local clone
> happens to be on a different file system. There is little reason to
> keep local clones on different file systems, however. On the same file
> system, the normal git clone operation uses hard links, and those are
> unproblematic regarding the given caveat.
I'd forgotten that hard links were the default, I was thinking it would copy the needed objects. Even so, the disk space usage would have only been temporary, for the life of the repository used for merging. Yes, leaving out -s is probably the right thing in most cases.
But the general idea of using a second, temporary repository for the merging, and pushing only the updated branches back to the main repository, will save space in the long run, and without needing the 30-day delay, GC, etc. It also lets one start practicing pulling and pushing changes between repositories.
Ken
next prev parent reply other threads:[~2014-11-15 18:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 11:26 Switching from old git tree Peder O. Klingenberg
2014-11-14 12:20 ` David Kastrup
2014-11-14 12:35 ` Sven Axelsson
2014-11-14 12:38 ` Sven Axelsson
2014-11-14 13:21 ` Peder O. Klingenberg
2014-11-14 13:53 ` David Kastrup
2014-11-14 14:20 ` Sven Axelsson
2014-11-14 14:54 ` David Kastrup
2014-11-14 15:52 ` Andreas Schwab
2014-11-14 18:29 ` David Caldwell
2014-11-15 8:43 ` Kenneth Raeburn
2014-11-15 8:58 ` Eli Zaretskii
2014-11-15 9:18 ` David Kastrup
2014-11-15 9:55 ` Eli Zaretskii
2014-11-15 18:26 ` Ken Raeburn [this message]
2014-11-14 13:29 ` Nicolas Richard
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56A2CB10-ED25-4C18-824A-683BBF2614CD@raeburn.org \
--to=raeburn@raeburn.org \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).