Web lists-archives.com

Re: [RFC PATCH 3/3] sha1_file: add promised blob hook support




Hi,

Ben Peart wrote:
> On 7/11/2017 3:48 PM, Jonathan Tan wrote:

>> Teach sha1_file to invoke a hook whenever a blob 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.
>
> This would seem to work well for promised blobs but does it
> currently support other object types?  In our large mono repos, we
> have to support missing commits and trees as well.

Can you elaborate on this?  This is the first time I've heard about
it.

Are you omitting commits and trees today?  How does that work with
commits --- is it something different from shallow clone?

[...]
> There are a couple of related patch series in flight that are
> playing in this area. We should definitely coordinate these various
> efforts.

In that spirit, I've created
https://github.com/jrn/git-large-repositories so we have a shared
place to keep track of pointers to the mailing list, etc.  I'll push
the links mentioned to there now.

I'm also usually available on IRC (channel #git-devel on freenode,
username jrnieder) for real-time conversation.  Logs are available at
http://colabti.org/irclogger/irclogger_logs/git-devel.  You can
prepend a message with [off] if you want it not to be logged.

Thanks,
Jonathan