Skip to content

Instantly share code, notes, and snippets.

@lrvick
Created October 2, 2018 22:46
Show Gist options
  • Save lrvick/4d325751b4efd913e58d938aa2b6cbae to your computer and use it in GitHub Desktop.
Save lrvick/4d325751b4efd913e58d938aa2b6cbae to your computer and use it in GitHub Desktop.
Git diff-tree issues

Git 2.11.0

$ git rev-parse HEAD
2e6215c920f384f958dc6dafcbaee5698c965657
$ git diff-tree -p "HEAD^"..HEAD | sha256sum
ae4fc1d2285ab6ac84cdd8ff6235f5534b6ded467dd8f586cbe1bfe885cc1afe  -
$ git diff-tree -p "HEAD^"..HEAD | git patch-id --stable
d9c0bf01265096e69f24b6e10d6c471f92d203c3 0000000000000000000000000000000000000000
00000a10: 0a20 0a40 4020 2d33 3734 2c31 3120 2b33  . .@@ -374,11 +3
00000a20: 3736 2c31 3720 4040 2063 6d64 5f69 6e69  76,17 @@ cmd_ini

Git 2.18.0

$ git rev-parse HEAD
2e6215c920f384f958dc6dafcbaee5698c965657
$ git diff-tree -p "HEAD^"..HEAD | sha256sum
10ba079dd67e3ea61b88dce24a1f45dcb000603bfc3a34947d24e9914beb70dd  -
$ git diff-tree -p "HEAD^"..HEAD | git patch-id --stable
a9d529dac0fb33e1d60d621236ac73bf9835b9f5 0000000000000000000000000000000000000000
00000a10: 0a20 0a40 4020 2d33 3733 2c31 3220 2b33  . .@@ -373,12 +3
00000a20: 3735 2c31 3820 4040 2063 6d64 5f69 6e69  75,18 @@ cmd_ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment