<p>osmith <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/11807">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Neels Hofmeyr: Looks good to me, approved
  osmith: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gits: fix MODS marks by timestamp-only changes<br><br>Use 'git diff' instead of 'git diff-index'. The latter does not look at<br>the content. It listed a file with an updated timestap as modified<br>(indicated in gits with "MODS"), whereas 'git diff' and 'git status'<br>did not (and we want this behavior, not marking it as modified).<br><br>This was a regression from b93f50 ("gits: use git plumbing commands").<br><br>Change-Id: I6726190912a1b3eb865cda77fbea6bf58a635d6e<br>---<br>M src/gits<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gits b/src/gits</span><br><span>index 8b75278..bd53cb5 100755</span><br><span>--- a/src/gits</span><br><span>+++ b/src/gits</span><br><span>@@ -99,7 +99,7 @@</span><br><span> </span><br><span> </span><br><span> def git_has_modifications(git_dir):</span><br><span style="color: hsl(0, 100%, 40%);">-    return not git_bool(git_dir, 'diff-index', '--quiet', 'HEAD')</span><br><span style="color: hsl(120, 100%, 40%);">+    return not git_bool(git_dir, 'diff', '--quiet', 'HEAD')</span><br><span> </span><br><span> </span><br><span> def git_can_fast_forward(git_dir, branch='master', remote='origin'):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/11807">change 11807</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11807"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-dev </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I6726190912a1b3eb865cda77fbea6bf58a635d6e </div>
<div style="display:none"> Gerrit-Change-Number: 11807 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>