<p>Patrick Georgi would like Martin Roth to <strong>review</strong> this change.</p><p><a href="https://review.coreboot.org/26694">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">util/gitconfig: improve robustness of checkpatch in pre-commit<br><br>Users can have non-default configurations as to how git diff et al are<br>presenting file names in diffs (default: a/ and b/ prefixes). checkpatch<br>expects that and trims the first element, so enforce that configuration<br>for the diff that's sent into it.<br><br>Change-Id: I099795119456a73c900b31ce191c2d9e898a5c7e<br>Signed-off-by: Patrick Georgi <pgeorgi@chromium.org><br>---<br>M util/gitconfig/pre-commit<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/94/26694/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/util/gitconfig/pre-commit b/util/gitconfig/pre-commit</span><br><span>index 0f13062..2aed957 100755</span><br><span>--- a/util/gitconfig/pre-commit</span><br><span>+++ b/util/gitconfig/pre-commit</span><br><span>@@ -20,7 +20,7 @@</span><br><span> </span><br><span> %MAKE% lint-stable</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-PATCHDIFF=$(git diff --cached)</span><br><span style="color: hsl(120, 100%, 40%);">+PATCHDIFF=$(git diff --cached --src-prefix=a/ --dst-prefix=b/)</span><br><span> if printf "%s\n" "$PATCHDIFF" | grep -q "@@"; then</span><br><span>         echo</span><br><span>         echo "Running checkpatch"</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/26694">change 26694</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.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://review.coreboot.org/26694"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I099795119456a73c900b31ce191c2d9e898a5c7e </div>
<div style="display:none"> Gerrit-Change-Number: 26694 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Georgi <pgeorgi@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: Martin Roth <martinroth@google.com> </div>