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

"Shallow Since" Clones Support #6611

Open
RonAmihai opened this issue Jul 27, 2023 · 1 comment
Open

"Shallow Since" Clones Support #6611

RonAmihai opened this issue Jul 27, 2023 · 1 comment

Comments

@RonAmihai
Copy link

Due to the recent official shallow clone support, I wonder if adding support for "shallow since" clones is possible.

That means git clone ... --shallow-since=<date>
(where date can be either date string or numeric timestamp)

@lrm29
Copy link
Contributor

lrm29 commented Jul 27, 2023

I think so, need to add "deepen-since" (https://git-scm.com/docs/protocol-v2) to git_pkt_buffer_wants (you'll see where "deepen" is written in that function).

Then add "deepen_since" as a field to git_fetch_options and pass that all the way through to git_pkt_buffer_wants.

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

No branches or pull requests

2 participants