<div dir="ltr">I don't mind dealing with rebase conflicts if I can figure out a workflow that doesn't screw up my repository. This seems to be mostly related to the fact that I spend a lot of time developing on two machines -- my office workstation and my laptop -- before merging to master, so I have to push commits back and forth between them, and pushing to a branch on origin is the easiest way to do that reliably.<div>
<br></div><div>If I can rewrite commit history on a branch that I've pushed to origin without screwing things up, I'm happy to try a rebase-oriented workflow again.</div><div><br></div><div>(I've also tried cloning my workstation repository onto a thumb drive and using that to move data back and forth between machines, but that only seems to pose the same problems in a different way.)</div>
<div><br></div><div>Alternatively, it may make more sense for me to just use my laptop for development exclusively, and make a habit of not committing back to master until my branch is rebased and ready for review. The multiple-machine setup turns out not to give me a lot of value beyond a relatively small amount of convenience.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 17, 2014 at 1:43 PM, Brett Smith <span dir="ltr"><<a href="mailto:brett@curoverse.com" target="_blank">brett@curoverse.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>
      <p style="margin:1.2em 0px!important">(I know we talked about
        this at lunch, but I wanted to post too for others’ benefit.)</p><div class="">
      <p style="margin:1.2em 0px!important">On 04/17/2014 11:12 AM,
        peter wrote:</p>
      <p style="margin:1.2em 0px!important"></p>
      <div>
        <p></p>
        <blockquote type="cite">
          <pre>On Thu, 2014-04-17 at 10:24 -0400, Brett Smith wrote:

</pre>
          <blockquote type="cite">
            <pre>I was just reviewing a branch for Tom. Since this was my second pass
on it, I went to the git log to see what changed since my last pass.
I’ve attached the log graph output magit showed me. The complicated
history tree made it challenging to find all the relevant revisions.
Tom described making several changes that I didn’t see at first, until
I found 1881da32 and friends near the bottom of the screen.
</pre>
          </blockquote>
          <pre>As I look at it, the problem you actually have here is that it is hard
to identify which commits go with the feature branch you're trying to
review, and which commits are merges from other places.  Is that fair?</pre>
        </blockquote>
        <p></p>
      </div>
      <p style="margin:1.2em 0px!important"></p>
      </div><p style="margin:1.2em 0px!important">That is the problem I
        had this morning. And as people have pointed out since then, <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px 3px 3px 3px;display:inline">git log</code>
        can help solve this problem with specs like <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px 3px 3px 3px;display:inline">--first-parent</code>
        and <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px 3px 3px 3px;display:inline">^master</code>.</p>

      <p style="margin:1.2em 0px!important">I think a merge-heavy
        history can make other problems too, though. In particular, when
        you’re reviewing history on master itself. Trying to understand
        where something came from, either manually or using a tool like
        git bisect, is more difficult with a complicated tree.</p><span class="HOEnZb"><font color="#888888">
    </font></span></div><span class="HOEnZb"><font color="#888888">
    <div>-- <br>
      Brett Smith</div>
  </font></span></div>

<br>_______________________________________________<br>
Arvados-dev mailing list<br>
<a href="mailto:Arvados-dev@arvados.org">Arvados-dev@arvados.org</a><br>
<a href="http://lists.arvados.org/mailman/listinfo/arvados-dev" target="_blank">http://lists.arvados.org/mailman/listinfo/arvados-dev</a><br>
<br></blockquote></div><br></div>