2008/3/18 Sebastian Kuegler &lt;<a href="mailto:sebas@kde.org">sebas@kde.org</a>&gt;:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tuesday 18 March 2008 15:45:27 Marijn Kruisselbrink wrote:<br>
&gt; Sebastian Kuegler wrote:<br>
&gt; &gt; I can imagine that this forms a real barrier for some (me), but maybe<br>
&gt; &gt; someone has already solved that?<br>
&gt;<br>
&gt; I&#39;m using this small shell-script to generate a diff between the current<br>
&gt; working copy and HEAD that review-board will accept with git-svn. This<br>
&gt; does assume that HEAD is actually an svn revision, I don&#39;t think it will<br>
&gt; work when you have already comitted changes locally.<br>
&gt;<br>
&gt; #!/bin/sh<br>
&gt; REV=`git-svn find-rev HEAD`<br>
&gt; git-diff --no-prefix $* HEAD | sed -e &#39;s/^+++ .*/&amp; &nbsp;(working copy)/&#39; -e<br>
&gt; &quot;s/^--- .*/&amp; &nbsp;(revision $REV)/&quot;<br>
<br>
</div>My preferred workflow would be:<br>
<br>
- Have master branch up to date from SVN<br>
- Work on stuff in branches<br>
- Merge changes from master into those branches as I see fit</blockquote><div><br>You should rebase, not merge. ;-)<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
- When something in a branch should be committed, I&#39;d merge this commit into<br>
 &nbsp;master and dcommit it (possibly after going through RB)<br>
- When a branch is done, I&#39;d merge the whole branch into master and dcommit<br>
 &nbsp;that<br>
<br>
So that involves committing locally. Changing you scriptlet to find the latest<br>
SVN revision would be necessary in that case, no?<br>
<div><div></div><br></div></blockquote></div><br>the script looks good, you probably have to add<br>git-rev-list --date-order --max-count=1 &lt;git-svn&gt;<br clear="all"><br>where &lt;git-svn&gt; is the name of the remote branch (git branch -r)<br>
which maps the svn repo. that gives you the other argument for git diff.<br><br>-Riccardo<br>-- <br>GPG key:<br>3D0F6376<br>When encrypting, please encrypt also for this subkey:<br>9EBD7FE1<br>-----<br>Pace Peace Paix Paz Frieden Pax Pokój Friður Fred Béke 和平<br>
Hasiti Lapé Hetep Malu Mир Wolakota Santiphap Irini Peoch שלום<br>Shanti Vrede Baris Rój Mír Taika Rongo Sulh Mir Py&#39;guapy 평화