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

jj-lib: abstract a lower-level api for fetching from git. #4959

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

essiene
Copy link
Contributor

@essiene essiene commented Nov 24, 2024

  • GitFetch{} separates fetch() from import_refs().
  • This allows more control over the stages of the fetch so multiple fetches
    can happen before import_refs resolves the changes in the local jj repo.
  • Implement git::fetch in terms of the new api.
  • Add a test case for initial fetch from a repo without HEAD set. This tests
    the default branch retrieving behaviour.

Issue: #4923

Checklist

If applicable:

  • I have added tests to cover my changes

@essiene essiene force-pushed the essiene/nwtzqzumrzyw branch from e5cb616 to cc6382a Compare November 24, 2024 03:07
@essiene essiene requested a review from yuja November 24, 2024 03:19
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
@essiene essiene force-pushed the essiene/nwtzqzumrzyw branch from cc6382a to 35554c0 Compare November 30, 2024 12:04
@essiene essiene requested a review from yuja November 30, 2024 12:06
@essiene essiene force-pushed the essiene/nwtzqzumrzyw branch 2 times, most recently from c35a6f7 to c2e4cb0 Compare November 30, 2024 18:35
cli/src/commands/git/clone.rs Outdated Show resolved Hide resolved
cli/src/commands/git/clone.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Outdated Show resolved Hide resolved
lib/src/git.rs Show resolved Hide resolved
lib/tests/test_git.rs Outdated Show resolved Hide resolved
@essiene essiene force-pushed the essiene/nwtzqzumrzyw branch 4 times, most recently from ed6876d to d5c1a07 Compare December 1, 2024 11:48
* GitFetch{} separates `fetch()` from `import_refs()`.
* This allows more control over the stages of the fetch so multiple fetches
  can happen before `import_refs` resolves the changes in the local jj repo.
* Implement `git::fetch` in terms of the new api.
* Add a test case for initial fetch from a repo without `HEAD` set. This tests
  the default branch retrieving behaviour.

Issue: #4923
@essiene essiene force-pushed the essiene/nwtzqzumrzyw branch from d5c1a07 to 5275f9a Compare December 1, 2024 12:09
@essiene essiene merged commit 694dfb8 into main Dec 1, 2024
31 checks passed
@essiene essiene deleted the essiene/nwtzqzumrzyw branch December 1, 2024 12:22
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.

2 participants