login
Header Space

 
 

Re: Importing from tarballs; add, rm, update-index?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Peter Baumann <waste.manager@...>
Cc: Junio C Hamano <junkio@...>, <git@...>
Date: Saturday, January 13, 2007 - 7:17 am

Hi,

On Sat, 13 Jan 2007, Peter Baumann wrote:


Bzzzzt! Nope. "Reserved buckets" as you use it is nothing else than a 
file.


Content: a byte stream with a label (so you can find it again). Of 
_course_ you don't want the byte stream vanish in a big black hole, so you 
_have_ to name it.

But git-add actually does two things: it adds a (completely new) object, 
which just holds the byte stream, being named by its content (the hash). 

But when committing, the _existing_ tree object is "updated", by writing a 
_new_ tree object. So, it is not an "updating" in the sense of "editing", 
rather "updating" as in copy-on-write.

So no, there are no "reserved buckets". You are very much _adding_ 
new information.

Another way to look at it: in git, you never "take away" anything. You 
only add things. Even if you remove a file from your working tree, and 
want to commit the change, it means that you _add_ information: The 
information that this file is no longer in the current revision. But the 
commit references the old revision (indeed, the _whole_ ancestry!), in 
which the file _was_ present, so you literally _added_ something _on top_ 
of the old revision.

Hth,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Importing from tarballs; add, rm, update-index?, Peter Baumann, (Fri Jan 12, 3:11 pm)
Re: Importing from tarballs; add, rm, update-index?, Junio C Hamano, (Fri Jan 12, 3:43 pm)
Re: Importing from tarballs; add, rm, update-index?, Brian Gernhardt, (Sat Jan 13, 2:36 am)
Re: Importing from tarballs; add, rm, update-index?, Peter Baumann, (Fri Jan 12, 5:04 pm)
Re: Importing from tarballs; add, rm, update-index?, Junio C Hamano, (Fri Jan 12, 8:48 pm)
Re: Importing from tarballs; add, rm, update-index?, Carl Worth, (Sat Jan 13, 12:09 pm)
Re: Importing from tarballs; add, rm, update-index?, Nicolas Pitre, (Sat Jan 13, 2:54 pm)
Re: Importing from tarballs; add, rm, update-index?, Carl Worth, (Sat Jan 13, 3:32 pm)
Re: Importing from tarballs; add, rm, update-index?, Nicolas Pitre, (Sat Jan 13, 4:29 pm)
Re: Importing from tarballs; add, rm, update-index?, Junio C Hamano, (Sat Jan 13, 4:25 pm)
Re: Importing from tarballs; add, rm, update-index?, Peter Baumann, (Sat Jan 13, 12:48 pm)
Re: Importing from tarballs; add, rm, update-index?, Brian Gernhardt, (Sat Jan 13, 12:45 pm)
Re: Importing from tarballs; add, rm, update-index?, Peter Baumann, (Sat Jan 13, 5:33 am)
Re: Importing from tarballs; add, rm, update-index?, Johannes Schindelin, (Sat Jan 13, 7:17 am)
Re: Importing from tarballs; add, rm, update-index?, Peter Baumann, (Sat Jan 13, 12:19 pm)
Re: Importing from tarballs; add, rm, update-index?, Julian Phillips, (Sat Jan 13, 12:27 pm)
speck-geostationary