What is a blob under the hood?

SteeveDroz

I read on the official git website that:

The major difference between Git and any other VCS (Subversion and friends included) is the way Git thinks about its data. Conceptually, most other systems store information as a list of file-based changes. These systems (CVS, Subversion, Perforce, Bazaar, and so on) think of the information they keep as a set of files and the changes made to each file over time, (...)

Git doesn’t think of or store its data this way. Instead, Git thinks of its data more like a set of snapshots of a mini filesystem. Every time you commit, or save the state of your project in Git, it basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot. (...)

So I was wondering: if snapshots and not changes are saved, does it mean that if I change but one character in a 10Ko file, a second 10Ko file (or blob) will be created in my repository?

What is a blob under the hood? The file itself? Is it compressed? Is any small change in my file growing the repository drastically?

As I know you guys, I'll answer your comments before they come: I understand that disk space is not a problem anymore and that I don't have to worry about copying 10Ko, my question is just to satisfy my curiosity.

EDIT

Ok, Git's blob data and diff information gives half of the information. But is it compressed and/or space-optimized in any way?

bperson

(Quick and noobish answer)

It gets compressed when packing your repo. From what I know he will sometimes inverse the diff so that the plain text version stored is the latest one. And the diffs are with the older ones. This makes accessing the latest changes quicker.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is Firebase using under the hood?

From Dev

What is Under the Hood in a Stream in Programming?

From Dev

What is Android Service under the hood

From Java

React Hooks - What's happening under the hood?

From Dev

What happens under the hood with `deriving` in Haskell?

From Dev

What happens under-the-hood of these conditions?

From Dev

What is under the hood of x = 'y' 'z' in Python?

From Dev

`forkIO` and `putMVar`: what's going on under the hood?

From Dev

OpenCL on CPU Device - what happens under the hood?

From Dev

Catching and Throwing an Exception: What happens "under the hood"?

From Dev

OpenCL on CPU Device - what happens under the hood?

From Dev

What happens to strings under the hood in C?

From Dev

What does @objc do under the hood?

From Java

What auto keyword does under the hood when used with function pointers?

From Dev

What happens under the hood to prevent calling a bound method changing the this object?

From Dev

QuickBooks Enterprise - What database does it use under the hood?

From Dev

What happens under the hood when an USB drive is inserted?

From Dev

what does casting a pointer 'actually' do under the hood?

From Dev

What does replace do if no match is found? (under the hood)

From Dev

What are the under-the-hood differences between round() and numpy.round()?

From Dev

What does Tomcat do under the hood to give you an implementation of DataSource

From Dev

What happens under the hood when bytes converted to String in Java?

From Dev

In the code "{ exec >/dev/null; } >/dev/null" what is happening under the hood?

From Dev

Stuck at refreshing gradle project. What is happening under the hood?

From Dev

What does "eksctl create iamserviceaccount" do under the hood on an EKS cluster?

From Dev

In the code "{ exec >/dev/null; } >/dev/null" what is happening under the hood?

From Dev

What happens under the hood when an USB drive is inserted?

From Dev

what does mount -o remount,ro / actually do (under the hood)

From Dev

Breaking down shell scripts; What happens under the hood?

Related Related

  1. 1

    What is Firebase using under the hood?

  2. 2

    What is Under the Hood in a Stream in Programming?

  3. 3

    What is Android Service under the hood

  4. 4

    React Hooks - What's happening under the hood?

  5. 5

    What happens under the hood with `deriving` in Haskell?

  6. 6

    What happens under-the-hood of these conditions?

  7. 7

    What is under the hood of x = 'y' 'z' in Python?

  8. 8

    `forkIO` and `putMVar`: what's going on under the hood?

  9. 9

    OpenCL on CPU Device - what happens under the hood?

  10. 10

    Catching and Throwing an Exception: What happens "under the hood"?

  11. 11

    OpenCL on CPU Device - what happens under the hood?

  12. 12

    What happens to strings under the hood in C?

  13. 13

    What does @objc do under the hood?

  14. 14

    What auto keyword does under the hood when used with function pointers?

  15. 15

    What happens under the hood to prevent calling a bound method changing the this object?

  16. 16

    QuickBooks Enterprise - What database does it use under the hood?

  17. 17

    What happens under the hood when an USB drive is inserted?

  18. 18

    what does casting a pointer 'actually' do under the hood?

  19. 19

    What does replace do if no match is found? (under the hood)

  20. 20

    What are the under-the-hood differences between round() and numpy.round()?

  21. 21

    What does Tomcat do under the hood to give you an implementation of DataSource

  22. 22

    What happens under the hood when bytes converted to String in Java?

  23. 23

    In the code "{ exec >/dev/null; } >/dev/null" what is happening under the hood?

  24. 24

    Stuck at refreshing gradle project. What is happening under the hood?

  25. 25

    What does "eksctl create iamserviceaccount" do under the hood on an EKS cluster?

  26. 26

    In the code "{ exec >/dev/null; } >/dev/null" what is happening under the hood?

  27. 27

    What happens under the hood when an USB drive is inserted?

  28. 28

    what does mount -o remount,ro / actually do (under the hood)

  29. 29

    Breaking down shell scripts; What happens under the hood?

HotTag

Archive