From cfea5d0ea3ecf7386fde25083864c213785c10d6 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Jul 23 2015 18:26:58 +0000 Subject: Use git format-patch for git snapshots There are two reasons for this. The first is that there is much more context around the changes. The second is that this will make automating an exploded git tree much easier to manage. --- diff --git a/scripts/generate-git-snapshot.sh b/scripts/generate-git-snapshot.sh index b6fe0d6..0107f1b 100755 --- a/scripts/generate-git-snapshot.sh +++ b/scripts/generate-git-snapshot.sh @@ -11,7 +11,7 @@ export NEWGIT=$(($OLDGIT+1)) pushd $LINUX_GIT -git diff v$VER.. > /tmp/patch-$VER-git$NEWGIT +git format-patch --stdout v$VER.. > /tmp/patch-$VER-git$NEWGIT xz -9 /tmp/patch-$VER-git$NEWGIT DESC=$(git describe) popd