Skip to content

Commit c06c837

Browse files
committed
just: add targets for diffing
These have been hanging out in my shell history. Let's capture them in the Justfile.
1 parent cdafddf commit c06c837

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Justfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# Diff 2 releases using diffocope.
2+
diff a b:
3+
diffoscope \
4+
--html build/diff.html \
5+
--exclude 'python/build/**' \
6+
--exclude-command '^readelf.*' \
7+
--exclude-command '^xxd.*' \
8+
--exclude-command '^objdump.*' \
9+
--exclude-command '^strings.*' \
10+
--max-report-size 9999999999 \
11+
--max-page-size 999999999 \
12+
--max-diff-block-lines 100000 \
13+
--max-page-diff-block-lines 100000 \
14+
{{ a }} {{ b }}
15+
16+
diff-python-json a b:
17+
diffoscope \
18+
--html build/diff.html \
19+
--exclude 'python/build/**' \
20+
--exclude 'python/install/**' \
21+
--max-diff-block-lines 100000 \
22+
--max-page-diff-block-lines 100000 \
23+
{{ a }} {{ b }}
24+
125
# Download release artifacts from GitHub Actions
226
release-download-distributions token commit:
327
mkdir -p dist
@@ -62,3 +86,4 @@ release token commit tag:
6286
datetime=$(ls dist/cpython-3.10.*-x86_64-unknown-linux-gnu-install_only-*.tar.gz | awk -F- '{print $8}' | awk -F. '{print $1}')
6387
just release-upload-distributions {{token}} ${datetime} {{tag}}
6488
just release-set-latest-release {{tag}}
89+

0 commit comments

Comments
 (0)