<div dir="ltr">I would do...<div><br></div><div>cd bugzilla</div><div><br></div><div># hum, what is new today?</div><div>git fetch</div><div><br></div><div># hum what tags are there (in case i missed reading the output of git fetch)</div><div>git tags</div><div><br></div><div># hum what branches are still alive?</div><div>git branches -a</div><div><br></div><div># I want that one for some reason.</div><div><span style="font-family:arial,sans-serif;font-size:13px">git checkout bugzilla-4.4.6</span><br style="font-family:arial,sans-serif;font-size:13px"></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"># let's get to business.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">git checkout -b werk origin/4.4</span><br style="font-family:arial,sans-serif;font-size:13px"></div><div><span style="font-family:arial,sans-serif;font-size:13px">git add ...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">git commit ...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif"># reviews.</font></div><div><font face="arial, sans-serif"># more hacking</font></div><div><font face="arial, sans-serif"># ...</font></div><div><font face="arial, sans-serif"># done</font></div><div><font face="arial, sans-serif">git push origin werk:origin/4.4</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 31, 2014 at 3:10 PM, Michiel Beijen <span dir="ltr"><<a href="mailto:michiel.beijen@gmail.com" target="_blank">michiel.beijen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Fri, Oct 31, 2014 at 7:29 PM, Mark Côté <<a href="mailto:mcote@mozilla.com">mcote@mozilla.com</a>> wrote:<br>
><br>
> On 2014-10-31 7:26 AM, Gervase Markham wrote:<br>
> > A quick quiz:<br>
> ><br>
> > Q1: What git commands would I use to obtain an exact copy of 4.4.6 from<br>
> > our git repo?<br>
> ><br>
> > Q2: Same question for 4.4.4.<br>
<br>
</span><span class="">> Regarding Randall's message, we could branch for every release; indeed,<br>
> given git's very light-weight approach to branches, there are many<br>
> strategies for developing under git.  However, given our relatively<br>
> small change volume, I don't think it's worth the extra overhead, at the<br>
> moment at least.<br>
<br>
</span>I don't think there would be any additional benefit for having<br>
branches over tags for releases. I think tags are actually beneficial<br>
since they are *fixed* i.e. they can not change over time (as with a<br>
release, which you create at one given day and then it's out of the<br>
door, as with the 4.4.4 release) whereas the branch has the<br>
possibility of future releases: you might want to check out the branch<br>
of 4.4 to work on it to create 4.4.7 one day. And if you want to go<br>
back to 4.4.4 or 3.2.whatever then you can still check out the tag,<br>
create a branch from that point with your patch, or perform your test,<br>
and it would work.<br>
<br>
Git also has the notion of signed tags so you can cryptographically<br>
guarantee a tag is exact *this* version of the project, and the source<br>
has not been messed with. Although I think I don't know many projects<br>
that actually use this feature. Usually a sha1 of a tarbal is deemed<br>
enough.<br>
<br>
If you have a reasonably new git (1.8) you can even clone a repo at a<br>
given tag. So your question above would be answered with:<br>
<br>
git clone --branch bugzilla-4.4.6 <a href="http://git.mozilla.org/bugzilla/bugzilla" target="_blank">http://git.mozilla.org/bugzilla/bugzilla</a><br>
<br>
BTW the answer of your initial question is also mentioned on this<br>
page: <a href="https://wiki.mozilla.org/Bugzilla:Git#Getting_A_Specific_Release" target="_blank">https://wiki.mozilla.org/Bugzilla:Git#Getting_A_Specific_Release</a><br>
<br>
--<br>
Mike<br>
<span class="">_______________________________________________<br>
dev-apps-bugzilla mailing list<br>
<a href="mailto:dev-apps-bugzilla@lists.mozilla.org">dev-apps-bugzilla@lists.mozilla.org</a><br>
<a href="https://lists.mozilla.org/listinfo/dev-apps-bugzilla" target="_blank">https://lists.mozilla.org/listinfo/dev-apps-bugzilla</a><br>
-<br>
To view or change your list settings, click here:<br>
</span><<a href="http://bugzilla.org/cgi-bin/mj_wwwusr?user=$MSGRCPT" target="_blank">http://bugzilla.org/cgi-bin/mj_wwwusr?user=$MSGRCPT</a>><br>
</blockquote></div><br></div>