From: Junio C Hamano <junkio@cox.net>
To: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: Branch relationships
Date: Sun, 14 May 2006 14:20:45 -0700 [thread overview]
Message-ID: <7vr72w2thu.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <200605142249.17508.Josef.Weidendorfer@gmx.de> (Josef Weidendorfer's message of "Sun, 14 May 2006 22:49:17 +0200")
Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:
> On Sunday 14 May 2006 19:36, Junio C Hamano wrote:
>> Josef Weidendorfer <Josef.Weidendorfer@gmx.de> writes:
>>
>> > On Saturday 13 May 2006 23:22, you wrote:
>> >> * remotes/ information from .git/config (js/fetchconfig)
>> >> ...
>> >> [branch "master"]
>> >> remote = "ko-private"
>
> I still do not understand the semantic of this line.
> Is this supposed to do "git pull ko-private" as default pull
> action and "git push ko-private" as default push?
>
> So using
>
>> ; my private build areas on the kernel.org machines
>> [remote "ko-private"]
>> url = "x86-64-build.kernel.org:git"
>> url = "i386-build.kernel.org:git"
>> push = master:origin
>> ...
>
> specifies that "git push" should push to both URLs?
Exactly. I would _want_ to push to both with single action when
I say "git push ko-private". Actually I have _never_ felt need
to, but Linus wanted it first and I think it makes sense.
> This is really confusing: Is the remote "ko-private" now at
> "x86-64-build.kernel.org:git" or at "i386-build.kernel.org:git" ?
Neither.
Perhaps reading my comment on #git log from yesterday or so,
where I talk about ".git/branches is about configuration
per-local branches, and .git/remotes is about giving a
short-hand to remote repositories that are used often",
might be helpful.
> Neverless, I missed the info "Which branch should be merged in a default
> pull after fetching the given branches from remote". I understand that
> this is not needed in your workflow, as you have no upstream.
Not with git but in other projects I do.
That is what "branch.foo.remote = this-remote" is about. When
working on foo branch, use what is described in
remote."this-remote" section for "git pull".
remote."this-remote" would have url and one or more fetch lines,
and as usual the first fetch line would say "merge this thing".
This gives the continuity in semantics while migrating from
.git/remotes/foo to [remote "foo"] section of the config file.
>> > [branch "ko-master"]
>> > tracksremote = "master of ko-private"
>> >
>> > This also would specify that we are not allowed to commit on "ko-master".
>>
>> For my workflow, it is "master of ko"; your notation expresses
>> the same constraints more explicitly by being more special
>> purpose
>
> Why is this more special purpose?
It is more special purpose than just saying "do not touch this
myself". You are saying "do not touch this myself because it
tracks a remote". I do not think it is necessary to state the
reason.
> Perhaps an option "when pulling into this branch from a remote, also fetch
> all branches tracked from this remote", or another one "when fetching/pulling
> into this branch, update all other branches, too".
You already have "when fetching from this remote, fetch all
these branches and store them in the tracking branches", and
that is what .git/remotes/ is about. The [remote] section in
the configuration file has the same semantics. What problem are
you trying to fix by doing things differently?
next prev parent reply other threads:[~2006-05-14 21:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-13 20:23 git diff: support "-U" and "--unified" options properly Linus Torvalds
2006-05-13 20:30 ` Junio C Hamano
2006-05-13 20:59 ` Junio C Hamano
2006-05-13 21:05 ` Linus Torvalds
2006-05-13 21:22 ` Junio C Hamano
2006-05-13 22:39 ` Linus Torvalds
2006-05-15 0:39 ` Junio C Hamano
2006-05-15 0:58 ` Linus Torvalds
2006-05-15 1:51 ` Junio C Hamano
2006-05-15 3:49 ` Linus Torvalds
2006-05-14 7:00 ` Martin Langhoff
2006-05-14 12:57 ` Josef Weidendorfer
2006-05-14 17:36 ` Junio C Hamano
2006-05-14 20:49 ` Branch relationships (was:Re: git diff: support "-U" and "--unified" options properly) Josef Weidendorfer
2006-05-14 21:20 ` Junio C Hamano [this message]
2006-05-14 22:01 ` Branch relationships Josef Weidendorfer
2006-05-14 22:19 ` Junio C Hamano
2006-05-14 23:04 ` Josef Weidendorfer
2006-05-14 23:55 ` Junio C Hamano
2006-05-15 1:48 ` Josef Weidendorfer
2006-05-15 2:11 ` Junio C Hamano
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=7vr72w2thu.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Josef.Weidendorfer@gmx.de \
--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;
as well as URLs for NNTP newsgroup(s).