On 22/11/24 1:59 pm, Junio C Hamano wrote:
Shubham Kanodia <shubham.kanodia10@xxxxxxxxx> writes:
Junio — would it make sense to add an option (and config) for `git
blame` that limits how far back it looks for fetching blobs?
No, I do not think it would.
What would our workaround for the next one when people say "oh, 'git
log -p' fetches blobs on demand and latency kills me"? Yet another
such an option only for 'git log'?
I'm guessing `git log` already provides options to limit history using
`-n` or `--since` so ideally its not unbounded if you use those, unlike
with `git blame`?
I understand our concerns regarding adding new config options though.
Between the solutions discussed in this thread — batching, adding server
side support, (or another) — what do you think could be a good track to
pursue here because this makes using `git blame` on larger partially
cloned repos a possible footgun.