summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xupdate-kernel-config11
1 files changed, 10 insertions, 1 deletions
diff --git a/update-kernel-config b/update-kernel-config
index b4d78f2..a4d54b6 100755
--- a/update-kernel-config
+++ b/update-kernel-config
@@ -33,7 +33,16 @@ config_names=$(
)
diff=$(
- git -C "${upstream_git_path}/$2/repos/$1-x86_64" diff "${old_revision}" HEAD -- config | \
+ diff -u <(
+ git -C "${upstream_git_path}/$2/repos/$1-x86_64" archive "${old_revision}" -- config | \
+ tar -Ox | \
+ sort
+ ) \
+ <(
+ git -C "${upstream_git_path}/$2/repos/$1-x86_64" archive HEAD -- config | \
+ tar -Ox | \
+ sort
+ ) | \
grep '^[+-].' | \
grep -v '^+++\|^---'
)