Commit 527c4bd8 authored by Hans Wennborg's avatar Hans Wennborg Committed by Commit Bot

clang_sheriffing.md: Start a Tips and Tricks section

Starting with a one-liner for finding what files differ between two dirs.

Bug: none
Change-Id: Ibb85f066ab1da79b70795691b6213f3d91fd9a58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1761604
Commit-Queue: Hans Wennborg <hans@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#688917}
parent 22e0efbf
......@@ -141,3 +141,18 @@ status, this is probably what you want to do.
TODO: Describe object file bisection, identify obj with symbol that no longer
has the section.
## Tips and tricks
Finding what object files differ between two directories:
```
$ diff -u <(cd out.good && find . -name "*.o" -exec sha1sum {} \; | sort -k2) \
<(cd out.bad && find . -name "*.o" -exec sha1sum {} \; | sort -k2)
```
Or with cmp:
```
$ find good -name "*.o" -exec bash -c 'cmp -s $0 ${0/good/bad} || echo $0' {} \;
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment