Re: [PATCH 1/7] sha1_file: keep track of where an SHA-1 object comes from

2013-01-24 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy pclo...@gmail.com writes: We currently know if an object is loose or packed. We do not know if it's from the repo's object database, or via alternates mechanism. With this patch, sha1_object_info_extended() can tell if an object comes from alternates source (and which

Re: [PATCH 1/7] sha1_file: keep track of where an SHA-1 object comes from

2013-01-24 Thread Duy Nguyen
On Fri, Jan 25, 2013 at 12:45 AM, Junio C Hamano gits...@pobox.com wrote: How about this way instead: we keep track of where objects come from so we can verify object source when we create or update something that contains SHA-1. The overall approach taken by this series may be worth

Re: [PATCH 1/7] sha1_file: keep track of where an SHA-1 object comes from

2013-01-24 Thread Junio C Hamano
Duy Nguyen pclo...@gmail.com writes: On Fri, Jan 25, 2013 at 12:45 AM, Junio C Hamano gits...@pobox.com wrote: How about this way instead: we keep track of where objects come from so we can verify object source when we create or update something that contains SHA-1. The overall approach

Re: [PATCH 1/7] sha1_file: keep track of where an SHA-1 object comes from

2013-01-24 Thread Duy Nguyen
On Fri, Jan 25, 2013 at 10:58 AM, Junio C Hamano gits...@pobox.com wrote: Duy Nguyen pclo...@gmail.com writes: On Fri, Jan 25, 2013 at 12:45 AM, Junio C Hamano gits...@pobox.com wrote: How about this way instead: we keep track of where objects come from so we can verify object source when