Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7877077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:16:32+00:00 2026-06-03T03:16:32+00:00

According to this : It is important to note that this is very different

  • 0

According to this:

It is important to note that this is very different from most SCM
systems that you may be familiar with. Subversion, CVS, Perforce,
Mercurial and the like all use Delta Storage systems – they store
the differences between one commit and the next. Git does not do
this – it stores a snapshot of what all the files in your project
look like in this tree structure each time you commit. This is a
very important concept to understand when using Git.

Yet when I run 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

… it outputs the diff of the commit with the previous commits. I know that git doesn’t store diffs in blob objects, but does it store diffs in commit objects? Or is git show dynamically calculating the diff?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:16:33+00:00Added an answer on June 3, 2026 at 3:16 am

    No, commit objects in git don’t contain diffs – instead, each commit object contains a hash of the tree, which recursively and completely defines the content of the source tree at that commit. There’s a nice explanation in the git community book of what goes into blob objects, tree objects and commit objects .

    All the diffs that are shown to you by git’s tools are calculated on demand from the complete content of files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this , ActiveRecord first generates the SQL: SELECT * FROM clients LIMIT
According to this discussion , the iphone agreement says that it doesn't allow loading
According this MSDN article HttpApplication .EndRequest can be used to close or dispose of
I didnt find anything according this issue. Can jaas be used to secure my
I have made a custom suface button according this example: <Button> <Button.Template> <ControlTemplate TargetType=Button>
according to this description I just created an nine-patch image. I named it androidRow.9.png
According to this question Raphael - event when mouse near element i create a
According to this: http://developers.facebook.com/docs/reference/api/batch , there's a way to use results of first query
According to this article Silverlight 2 Beta 2 supports the DataContractJsonSerializer object. But, when
I am coding a survey that outputs a .csv file. Within this csv I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.