From 2c0769d3f8784430620d2c03b130cb3e473cbad0 Mon Sep 17 00:00:00 2001 From: Smaug123 Date: Thu, 7 May 2020 20:56:22 +0100 Subject: [PATCH] Add note about commit objects not being reproducible --- book/10-git-internals/sections/objects.asc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/book/10-git-internals/sections/objects.asc b/book/10-git-internals/sections/objects.asc index d0fa0b153..8f793311c 100644 --- a/book/10-git-internals/sections/objects.asc +++ b/book/10-git-internals/sections/objects.asc @@ -257,8 +257,14 @@ $ echo 'First commit' | git commit-tree d8329f fdf4fc3344e67ab068f836878b6c4951e3b15f3d ---- + +[NOTE] +==== You will get a different hash value because of different creation time and author data. +Moreover, while in principle any commit object can be reproduced precisely given that data, historical details of this book's construction mean that the printed commit hashes might not correspond to the given commits. Replace commit and tag hashes with your own checksums further in this chapter. +==== + Now you can look at your new commit object with `git cat-file`: [source,console]