From: ALBERTIN TIMOTHEE p1514771 <timothee.albertin@etu.univ-lyon1.fr>
To: MOY MATTHIEU <matthieu.moy@univ-lyon1.fr>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>,
Michael Haggerty <mhagger@alum.mit.edu>,
Jordan DE GEA <jordan.de-gea@grenoble-inp.org>,
"PAYRE NATHAN p1508475" <nathan.payre@etu.univ-lyon1.fr>,
"BENSOUSSAN--BOHM DANIEL p1507430"
<daniel.bensoussan--bohm@etu.univ-lyon1.fr>
Subject: RE: [PATCH v2] doc: add triangular workflow
Date: Fri, 15 Dec 2017 15:18:41 +0000 [thread overview]
Message-ID: <1513354712419.77557@etu.univ-lyon1.fr> (raw)
In-Reply-To: <1547311095.1194033.1513263844281.JavaMail.zimbra@inria.fr>
>> +
>> +........................................
>> +------------------ -----------------
>> +| UPSTREAM | maintainer | PUBLISH |
>> +| |- - - - - - - -| |
>> +------------------ <- -----------------
>> + \ /
>> + \ /
>> + fetch | \ / ^ push
>> + v \ / |
>> + \ /
>> + -------------
>> + | LOCAL |
>> + -------------
>This kind of diagram deserves a bit of text to explain the situation.
>For example, LOCAL is local only for the contributor (the maintainer
>doesn't need to know about it for example). I'd add a sentence to
>explain that this gives the overall view on the flow, from the point
>of view of a contributor.
Ok, we'll do that
>> +* `git push`
>This will push to UPSTREAM, right?
Yes, we will specify it.
>> +Adding **UPSTREAM** remote:
>> +
>> +===================================
>> +`git remote add upstream <UPSTREAM_url>`
>> +===================================
>In which circumstance shall one write this? If you don't say it, the
>reader will probably assume that this is to be done after the commands
>you specified right above. But then: it doesn't make sense. You've
>just cloned from UPSTREAM, you already have the UPSTREAM remote.
Indeed, we just remove it.
>> +For each branch requiring a triangular workflow, set
>> +`branch.<branch>.remote` and `branch.<branch>.pushRemote` to set up
>> +the **UPSTREAM** and **PUBLISH** repositories.
>This neither tells me how to set the variables, nor what the effect
>will be ("set up"?).
We'll fix that in the next patch.
>> +Example with master as <branch>:
>> +===================================
>> +* `git config branch.master.remote upstream`
>> +* `git config branch.master.pushRemote origin`
>> +===================================
>origin is the remote you've cloned from. From the text above, I guess
>you meant it to point to PUBLISH. But all the examples "git clone" you
>gave are from UPSTREAM.
>You're mixing the case where one "git clone"s from UPSTREAM and "git
>remode add"s PUBLISH, and the converse. Both are possible, but the
>"origin" remote will be different depending on which one you chose.
I think I don't really get it. IMHO UPSTREAM is name from the repository
you pull from and PUBLISH from the repositiry you push to.
>> +Making your work available
>> +~~~~~~~~~~~~~~~~~~~~~~~~~~
>> +
>> +The `git push` command sends commits to the **PUBLISH** repository and not to
>> +the **UPSTREAM** thanks to the configuration you did earlier with the
>> +`git config remote.pushdefault origin` command.
>This explanation should be next to the place where you recommend
>setting remote.pushdefault.
Done.
>> +When a contributor pushes something, the `git config push.default
>> +current` command can be used to specify that the name of the
>> +**PUBLISH** branch is the same as the name of the **LOCAL** one.
>I already said it multiple times, but I don't think it's a good idea
>to recommend changing push.default. The default, "simple", was
>specifically designed to be appropriate for triangular workflow:
>http://git.661346.n2.nabble.com/PATCH-0-6-push-default-in-the-triangular-world-td7589907.html
>(PATCH 3/6 in particular)
>You may disagree with me, but then please explain your motivation (by
>replying to my messages and/or by explaining the rationale in the
>commit message).
I read this discussion and so I understand the point here. I agree we
shouldn't recommend this.
>> +=================================
>> +`git rev-parse --abbrev-ref @{push}`
>> +=================================
>> +
>> +.Display the fetch remote's name:
>> +[caption="Recipe: "]
>> +
>> +===================================
>> +`git rev-parse --abbrev-ref @{upstream}`
>> +===================================
>I don't think "rev-parse" is the best example to give.
>I use @{upstream} all the time to see what commits I have which aren't
>in upstream yet:
>git log @{upstream}..
git log seems a better exemple.
We are ok we the rest of the review
Thank you for your time
Timothée Albertin
next prev parent reply other threads:[~2017-12-15 15:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-30 9:42 [PATCH] doc: clarify triangular workflow Timothee Albertin
2017-12-03 6:36 ` Junio C Hamano
2017-12-07 9:26 ` BENSOUSSAN--BOHM DANIEL p1507430
[not found] ` <24f652b96fd940ee91e2741830382a72@BPMBX2013-01.univ-lyon1.fr>
2017-12-07 12:43 ` Matthieu Moy
2017-12-07 15:31 ` Junio C Hamano
2017-12-14 10:48 ` [PATCH v2] doc: add " Daniel Bensoussan
[not found] ` <9a0556ac403845f39a564bbc55df5b3a@BPMBX2013-01.univ-lyon1.fr>
2017-12-14 15:04 ` Matthieu Moy
2017-12-14 20:47 ` Junio C Hamano
2017-12-15 15:46 ` ALBERTIN TIMOTHEE p1514771
[not found] ` <eca47dd3598045a1a3fac94f9df8e972@BPMBX2013-01.univ-lyon1.fr>
2017-12-15 16:04 ` Matthieu Moy
2017-12-15 15:18 ` ALBERTIN TIMOTHEE p1514771 [this message]
[not found] ` <130319f3e40c4bfb81d2fc37bb4a4f9f@BPMBX2013-01.univ-lyon1.fr>
2017-12-15 15:54 ` Matthieu Moy
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: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1513354712419.77557@etu.univ-lyon1.fr \
--to=timothee.albertin@etu.univ-lyon1.fr \
--cc=daniel.bensoussan--bohm@etu.univ-lyon1.fr \
--cc=git@vger.kernel.org \
--cc=jordan.de-gea@grenoble-inp.org \
--cc=matthieu.moy@univ-lyon1.fr \
--cc=mhagger@alum.mit.edu \
--cc=nathan.payre@etu.univ-lyon1.fr \
/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://80x24.org/mirrors/git.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).