Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add partial clone argument in vcs import #283

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Owen-Liuyuxuan
Copy link

Introduction

A partial clone is an efficient way to clone only part of the git history of a certain repository.

For example, we can clone big repositories with an extensive Git history using partial clones and save much time and networks.

git clone --filter=blob:none --no-checkout https://github.com/autowarefoundation/autoware.universe
git checkout $tag # This could be either a branch or a random tag in the history

At the time the PR was created, the partial clone could shrink the download size of autoware.universe from 1.5G (1.1G .git + 340M codes) to 500M (160M.git + 340M codes).

Implementation

In this PR, I incorporate the argument in the vcs import command for Git client. The codes are straight-forward, but it solve many of the problems we faced.

Signed-off-by: YuxuanLiuTier4Desktop <[email protected]>
Signed-off-by: YuxuanLiuTier4Desktop <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant