Re: [PATCH 2/3] merge-recursive: make empty tree a known object
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 10, 2006, 21:21 UTC
- Message-ID
- <7vpsar4fcu.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0612101030390.12500@woody.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> So you could make "read_sha1_file()" just have a special case for known > objects at the end. If the pack entry fails, the loose file case fails, > then rather than returning NULL at the end, you could have a list of known > fixed objects..
That is fine by me. We would benefit from an empty blob and an empty tree.