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 8416517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:46:53+00:00 2026-06-10T01:46:53+00:00

As the title suggest, is the value based on the content of all tree

  • 0

As the title suggest, is the value based on the content of all tree objects(recursively) inside?

Namely, can I regard two tree objects as the exactly same file tree (including all the subdirectories and files) if they have the same hash value?

  • 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-10T01:46:54+00:00Added an answer on June 10, 2026 at 1:46 am

    You can see some rough details about what is used to calculate the tree SHA here.

    Further information about the binary format that the tree is stored in can be found here.

    The actual SHA that is used is just the SHA of the buffer described in that detailed version.

    The key points to take home is that the SHA is dependent on the filenames of all contained objects or trees, their SHAs and their permissions. Change any of those and you change the SHA. If two trees have the same SHAs then all those components must match (excluding the possibility of collisions as they’re nigh on impossible).

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

Sidebar

Related Questions

Before you stop reading and suggest HTML Agility (based on the title), I am
As the title suggest, I would like to do the above. Example below: library(stringr)
As the title suggest, I've enabled right clicks for my tableview with customized rows.
Please suggest or change some suitlable title for this question as i am not
As the title suggests, I was wondering how to concat two fields in a
I have Pathauto configured to generate an alias based on the title of a
Firstly, apologies for the vague title, but I'm not sure exactly what I'm asking
Based on below 2 tables declare @t1 table ( Id int, Title varchar(100), RelatedId
I'm building a content-based movie recommender system. It's simple, just let a user enter
As the title suggests I am getting the 'Column count doesn't match value count

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.