<pre style='margin:0'>
jmroot pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/42a88e507ae9035a759225dd2779f3301865c664">https://github.com/macports/macports-base/commit/42a88e507ae9035a759225dd2779f3301865c664</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 42a88e5 Add --autostash to git pull command if available when syncing
</span>42a88e5 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 42a88e507ae9035a759225dd2779f3301865c664
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Tue Nov 1 03:29:19 2016 +1100
<span style='display:block; white-space:pre;color:#404040;'> Add --autostash to git pull command if available when syncing
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This makes it possible to update with a dirty working copy.
</span>---
src/macports1.0/macports.tcl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/macports1.0/macports.tcl b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index f8fb65c..8e5a66a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/macports1.0/macports.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2427,7 +2427,11 @@ proc macports::GetVCSUpdateCmd portDir {
</span> return [list git-svn "cd $portDir && $git svn rebase || true"]
}
# regular git repository
<span style='display:block; white-space:pre;background:#ffe0e0;'>- return [list Git "cd $portDir && $git pull --rebase || true"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set autostash ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![catch {exec $git --version} gitversion] && [vercmp [lindex [split $gitversion] end] 1.8.4] >= 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set autostash " --autostash"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return [list Git "cd $portDir && $git pull --rebase${autostash} || true"]
</span> }
# Add new VCSes here!
</pre><pre style='margin:0'>
</pre>