From: Stephen Berman <stephen.berman@gmx.net>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: Kelvin White <kwhite@gnu.org>,
Harald Hanche-Olsen <hanche@math.ntnu.no>,
emacs-devel@gnu.org
Subject: Re: need help adjusting workflow to git (or vice versa)
Date: Thu, 13 Nov 2014 22:19:06 +0100 [thread overview]
Message-ID: <87fvdmu7cl.fsf@rosalinde.fritz.box> (raw)
In-Reply-To: <54651B70.2080302@cs.ucla.edu> (Paul Eggert's message of "Thu, 13 Nov 2014 12:58:24 -0800")
On Thu, 13 Nov 2014 12:58:24 -0800 Paul Eggert <eggert@cs.ucla.edu> wrote:
> On 11/13/2014 12:44 PM, Stephen Berman wrote:
>> That's what Martin referred to, isn't it? It takes considerably longer on my
>> older and feebler hardware, also compared with `bzr update' and `bzr pull
>> --overwrite' in a shared repository.
>
> By "shared repository" do you mean you have just one copy of the working
> files? I thought you had multiple copies, one for each branch. That's what I
> do, as it helps 'make' go faster.
I also have copies of the working files for each bzr branch, but just
one copy of the history; but it appears I had a wrong idea of what
cloning does...
>> And the size is also not insignificant, if it means having a copy of the
>> entire Emacs repository for each build (~540M).
>
> No, the repository is shared:
>
> $ time git clone master tmp
> Cloning into 'tmp'...
> done.
>
> real 0m1.314s
> user 0m0.997s
> sys 0m0.280s
> $ du -s master/.git tmp/.git
> 205500 master/.git
> 768 tmp/.git
Ok, this is not what I had thought, but I'm glad I was mistaken.
On Thu, 13 Nov 2014 21:58:27 +0100 (CET) Harald Hanche-Olsen <hanche@math.ntnu.no> wrote:
> [Stephen Berman <stephen.berman@gmx.net> (2014-11-13 20:44:22 UTC)]
>
>> That's what Martin referred to, isn't it? It takes considerably longer
>> on my older and feebler hardware, also compared with `bzr update' and
>> `bzr pull --overwrite' in a shared repository. And the size is also not
>> insignificant, if it means having a copy of the entire Emacs repository
>> for each build (~540M).
>
> You might have a look at the options --local and --shallow to git
> clone. The idea would be to have one full clone that pulls from
> savannah, then any number of local clones pulling from from that one.
>
> After running git clone --local emacs emacs2
> I get this:
>
> ; du -sh emacs/.git emacs2/.git
> 199M emacs/.git
> 392K emacs2/.git
>
> The clone operation was pretty fast, too. 7 seconds on an SSD.
Thanks, that's information I was missing, and seems to be just what I want.
On Thu, 13 Nov 2014 15:53:24 -0500 Kelvin White <kwhite@gnu.org> wrote:
> On Nov 13, 2014 2:51 PM, "Stephen Berman" <stephen.berman@gmx.net> wrote:
>>
>> On Thu, 13 Nov 2014 10:49:05 -0500 Kelvin White <kwhite@gnu.org> wrote:
>>
[...]
>> >
>> > The uncommitted changes will not be included unless you add them and
>> > commit them.
>>
>> But they are included in the build (I confirmed this by building from my
>> build branch, not from task branch (i.e., with my build branch currently
>> checked out), and that's what I want to avoid.
>
> Before checking out your build branch, either commit your changes, or stash
> them. This will keep the changes in the build branch and not carry them over
> into whatever branch you check out first.
Thanks, I didn't know about stashing either, and it seems to be close to
what I wanted.
Thanks to all of you for the feedback, it's been edifying.
Steve Berman
next prev parent reply other threads:[~2014-11-13 21:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-13 15:35 need help adjusting workflow to git (or vice versa) Stephen Berman
2014-11-13 15:49 ` Kelvin White
2014-11-13 19:50 ` Stephen Berman
2014-11-13 20:53 ` Kelvin White
2014-11-13 16:29 ` martin rudalics
2014-11-13 16:43 ` Andreas Schwab
2014-11-13 19:51 ` Stephen Berman
2014-11-13 20:10 ` Paul Eggert
2014-11-13 20:44 ` Stephen Berman
2014-11-13 20:58 ` Paul Eggert
2014-11-13 21:19 ` Stephen Berman [this message]
2014-11-13 20:58 ` Harald Hanche-Olsen
2014-11-13 21:22 ` Stefan Monnier
2014-11-14 5:26 ` Eli Zaretskii
2014-11-15 22:24 ` Stephen Berman
2014-11-16 18:57 ` Bill Wohler
2014-11-14 5:18 ` Rob Browning
2014-11-18 9:34 ` Eric S Fraga
2014-11-15 5:08 ` Bill Wohler
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=87fvdmu7cl.fsf@rosalinde.fritz.box \
--to=stephen.berman@gmx.net \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
--cc=hanche@math.ntnu.no \
--cc=kwhite@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.