<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 11:56 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":241">A couple of follow-on questions for this.<br>
<br>
Should one create remote branches for all such branches?<br></div></blockquote><div><br></div><div style>Yes, at least if you want to provide information to others about the branches. If you are going to be responsible for all merging and maintenance, then I guess you could merge without pushing the branch. We can find strays around release time using</div>
<div style><br></div><div style>$ git log --no-merges master..next</div><div style><br></div><div style>but those won't show up in</div><div style><br></div><div style>$ comm -12 <(git branch -r --no-merged master) <(git branch -r --merged next) | grep -v next</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":241">
How does one keep track of the 'merge path' the branch is destined to?<br>
One kows this before the branch is create and then remembers it until<br>
it gets merged to all its destinations? [or use some complicated git<br>
commands to keep track of this?]</div></blockquote></div><br>We can always look at the ancestor of the branch to see where it started from. Note that it's fine to make a branch starting at 'maint', but never bother to merge it back to 'maint'. If at some later time, anyone wants to make another maintenance release, they can merge it at that time.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style><br></div><div class="gmail_extra">Here is an example. When Junio fixed the bug, he did it in a topic branch based off a very old maintenance branch that the patches were never actually merged into. Now someone who wants to backport gets it in a single merge.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="http://permalink.gmane.org/gmane.comp.version-control.git/214870">http://permalink.gmane.org/gmane.comp.version-control.git/214870</a><br></div><div class="gmail_extra">
<br></div><div class="gmail_extra"><div class="gmail_extra">$ git log --graph --oneline v1.7.6.6..4682d85</div><div class="gmail_extra">* 4682d85 diff-index.c: "git diff" has no need to read blob from the standard input</div>
<div class="gmail_extra">* 3b069b1 diff-index.c: unify handling of command line paths</div><div class="gmail_extra">* c20f592 diff-index.c: do not pretend paths are pathspecs</div><div><br></div></div></div>