根据这篇文章:
需要注意的是,这与你熟悉的大多数版本控制系统非常不同。Subversion、CVS、Perforce、Mercurial等都使用增量存储系统——它们存储一个提交和下一个提交之间的差异。Git并不这样做——每次提交时,它存储项目中所有文件看起来像什么的快照。对于使用Git的人来说,这是一个非常重要的概念。
然而,当我运行git show $SHA1ofCommitObject
时,...
commit 4405aa474fff8247607d0bf599e054173da84113
Author: Joe Smoe <joe.smoe@example.com>
Date: Tue May 1 08:48:21 2012 -0500
First commit
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..de8b69b
--- /dev/null
+++ b/index.html
@@ -0,0 +1 @@
+<h1>Hello World!</h1>
diff --git a/interests/chess.html b/interests/chess.html
new file mode 100644
index 0000000..e5be7dd
--- /dev/null
+++ b/interests/chess.html
@@ -0,0 +1 @@
+Did you see on Slashdot that King's Gambit accepted is solved! <a href="http://game
...它输出的是提交与之前提交的差异。我知道git在blob对象中不存储差异,但它是否在提交对象中存储差异?或者git show
是动态计算差异吗?