]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
Implement blob ID validation in fast-import.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 14 Aug 2006 06:50:18 +0000 (02:50 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 14 Jan 2007 07:15:03 +0000 (02:15 -0500)
commit7111feede9c5905199ba48645fadc369faca5711
treecf74fa5c51824b0293396788381df47c538daec9
parent463acbe1c60fc5009dac9d033df6c2b9c5037a91
Implement blob ID validation in fast-import.

When accepting revision SHA1 IDs from the frontend verify the SHA1
actually refers to a blob and is known to exist.  Its an error
to use a SHA1 in a tree if the blob doesn't exist as this would
cause git-fsck-objects to report a missing blob should the pack get
closed without the blob being appended into it or a subsequent pack.
So right now we'll just ask that the frontend "pre-declare" any
blobs it wants to use in a tree before it can use them.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
fast-import.c