> I have to say I am very curious about this feature. Since the current > git partial-clone interface supports only a few filters: > > blob:limit > blob:none > sparse:oid > tree:0 > > Though these filters reduce the number of objects downloaded each time, > sometimes I just need *only* one blob object, git partial-clone will still > download some additional commits and tree objects from the remote. > > This patch can get the remote-object-info by git cat-file, so can we go > further to get the remote-object-content of the object? > > Something like: > > $ git cat-file --batch-command > remote-object-content origin <oid> I think this can be potentially future work. Part of my hesitation stems from the fact that there is no need to print out any object info when downloading an object. Therefore, it seems better suited to first be implemented in git fetch (or added as a filter to partial-clone). And then remote-object-content can be a combination of fetch + remote-object-info.