Re: [RFC PATCH v2 4/4] sha1_file: support promised object hook

2017-07-21 Thread Ben Peart
On 7/20/2017 5:18 PM, Jonathan Tan wrote: On Thu, 20 Jul 2017 16:58:16 -0400 Ben Peart wrote: This is meant as a temporary measure to ensure that all Git commands work in such a situation. Future patches will update some commands to either tolerate promised objects (without invoking the hook

Re: [RFC PATCH v2 4/4] sha1_file: support promised object hook

2017-07-20 Thread Jonathan Tan
On Thu, 20 Jul 2017 16:58:16 -0400 Ben Peart wrote: > >> This is meant as a temporary measure to ensure that all Git commands > >> work in such a situation. Future patches will update some commands to > >> either tolerate promised objects (without invoking the hook) or be more > >> efficient in i

Re: [RFC PATCH v2 4/4] sha1_file: support promised object hook

2017-07-20 Thread Ben Peart
On 7/20/2017 2:23 PM, Stefan Beller wrote: On Wed, Jul 19, 2017 at 5:21 PM, Jonathan Tan wrote: Teach sha1_file to invoke a hook whenever an object is requested and unavailable but is promised. The hook is a shell command that can be configured through "git config"; this hook takes in a list

Re: [RFC PATCH v2 4/4] sha1_file: support promised object hook

2017-07-20 Thread Stefan Beller
On Wed, Jul 19, 2017 at 5:21 PM, Jonathan Tan wrote: > Teach sha1_file to invoke a hook whenever an object is requested and > unavailable but is promised. The hook is a shell command that can be > configured through "git config"; this hook takes in a list of hashes and > writes (if successful) the

[RFC PATCH v2 4/4] sha1_file: support promised object hook

2017-07-19 Thread Jonathan Tan
Teach sha1_file to invoke a hook whenever an object is requested and unavailable but is promised. The hook is a shell command that can be configured through "git config"; this hook takes in a list of hashes and writes (if successful) the corresponding objects to the repo's local storage. The usage