* FEATURE/QUESTION: git fetch only commit objects, but not tree/file objects
@ 2024-11-29 16:24 Antonio Russo
2024-12-01 2:36 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Antonio Russo @ 2024-11-29 16:24 UTC (permalink / raw)
To: git
Hello everyone,
Sometimes I'd like to investigate the commit history of a (large) git repository,
but I don't actually (yet) care about the actual files in the repository. I know
about shallow clones, but it covers kind of the opposite problem: a person may
just want the files, but not the history.
1. Is there a way to download only the git commit objects, and not the
corresponding tree (or file) blobs?
2. Is this a use case that anyone else cares about? I suppose a ton of code
assumes it can follow any references, so implementing this as a feature means a
ton of code would need to be adapted to handle the reference-not-locally-present
case. Maybe it might be interesting, but would make the git code-base way too
complicated?
I don't really know what keywords to look for, and man git-fetch did not
superficially seem to answer this, so I apologize if I wasn't able to find this
feature in the documentation.
Best,
Antonio
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: FEATURE/QUESTION: git fetch only commit objects, but not tree/file objects
2024-11-29 16:24 FEATURE/QUESTION: git fetch only commit objects, but not tree/file objects Antonio Russo
@ 2024-12-01 2:36 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2024-12-01 2:36 UTC (permalink / raw)
To: Antonio Russo; +Cc: git
Antonio Russo <aerusso@aerusso.net> writes:
> I don't really know what keywords to look for, and man git-fetch did not
You probably want to look for "--filter" in "git help clone".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-01 2:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-29 16:24 FEATURE/QUESTION: git fetch only commit objects, but not tree/file objects Antonio Russo
2024-12-01 2:36 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).