threads / discuss / 41489

git "thin" submodule clone to feed "describe"

Subject: git "thin" submodule clone to feed "describe"

## tl;dr

3 messages between Feb 23, 2016 and Feb 24, 2016.

replies: 2people: 2as markdown or json

Martin Langhoff· Feb 23, 2016, 21:03 UTC · lore
Hi git list! long time no see! :-) Been missing you lots.

Do we currently have any means to clone _history_ but not _blobs_ of a repo, or some approximation thereof?

With a bit more context: If I have a top-level project using a couple dozen submodules, where the submodules are huge, do I have a git-native means of running git-describe on each submodule without pulling the whole thing down?

In this context, most developers want to get full checkout of some submodules, but not of all; and 'git describe' of the submodules is needed to 'shim' the missing submodules appropriately.

If the answer is no, there's a bunch of ways I can carry that as extra data in the top level project. It's possible, yet inelegant & duplicative.

thanks,
martin
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff
Junio C Hamano· Feb 23, 2016, 21:33 UTC · re: Martin Langhoff · lore

Re: git "thin" submodule clone to feed "describe"

Martin Langhoff <martin.langhoff@gmail.com> writes:
Show 9 quoted lines
> Hi git list! long time no see! :-) Been missing you lots.
>
> Do we currently have any means to clone _history_ but not _blobs_ of a
> repo, or some approximation thereof?
>
> With a bit more context: If I have a top-level project using a couple
> dozen submodules, where the submodules are huge, do I have a
> git-native means of running git-describe on each submodule without
> pulling the whole thing down?
No, I do not think so.
Martin Langhoff· Feb 24, 2016, 01:28 UTC · re: Junio C Hamano · lore

Re: git "thin" submodule clone to feed "describe"

On Tue, Feb 23, 2016 at 4:33 PM, Junio C Hamano <gitster@pobox.com> wrote:
> No, I do not think so.

Thanks. I will probably setup a pre-commit hook at the top level project to update a submodule metadata file.

Not the prettiest but... :-)
m
-- 
 martin.langhoff@gmail.com
 -  ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 ~ http://docs.moodle.org/en/User:Martin_Langhoff

← back to recent threads