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

git_backend: Support shallow git repositories #4448

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

Veykril
Copy link
Collaborator

@Veykril Veykril commented Sep 12, 2024

Fixes #675

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@Veykril
Copy link
Collaborator Author

Veykril commented Sep 12, 2024

Only did some light manual testing. Unsure how to write a proper test for this, so if anyone has any ideas I am all ears :)

Do we want to specially render shallow commits? Right now they will just have the virtual root as their parent

@Veykril Veykril force-pushed the veykril/push-ulvyowmotxtr branch 5 times, most recently from 2f535ba to 4d117b0 Compare September 12, 2024 19:54
@Veykril Veykril changed the title shallow: Support shallow git repositories feat: Support shallow git repositories Sep 12, 2024
Copy link
Collaborator

@PhilipMetzger PhilipMetzger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nits and some points for further discussion. I also think the initial PR description was good, but we don't really have guidelines here.

cli/src/commands/git/clone.rs Outdated Show resolved Hide resolved
lib/src/git.rs 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_backend.rs Show resolved Hide resolved
docs/git-compatibility.md Outdated Show resolved Hide resolved
docs/git-compatibility.md Show resolved Hide resolved
@Veykril Veykril changed the title feat: Support shallow git repositories git_backend: Support shallow git repositories Sep 13, 2024
@Veykril Veykril force-pushed the veykril/push-ulvyowmotxtr branch 8 times, most recently from e4d43f1 to 6ed25c6 Compare September 15, 2024 08:16
@Veykril Veykril marked this pull request as ready for review September 15, 2024 08:19
@Veykril
Copy link
Collaborator Author

Veykril commented Sep 15, 2024

Okay this is ready for proper review now. I'm leaving deepening/unshallowing for a separate issue (will open an issue for that after this is merged)

Copy link
Collaborator

@yuja yuja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

lib/src/git_backend.rs Outdated Show resolved Hide resolved
lib/tests/test_git.rs Outdated Show resolved Hide resolved
lib/tests/test_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
cli/src/commands/git/clone.rs Outdated Show resolved Hide resolved
cli/src/commands/git/clone.rs Show resolved Hide resolved
Copy link
Collaborator

@PhilipMetzger PhilipMetzger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG after addressing Yuya's nits.

@Veykril Veykril force-pushed the veykril/push-ulvyowmotxtr branch 5 times, most recently from 2b5f2e5 to 361b203 Compare September 19, 2024 13:44
@Veykril Veykril force-pushed the veykril/push-ulvyowmotxtr branch 2 times, most recently from 469a35c to c3adbe3 Compare September 27, 2024 13:52
@Veykril Veykril enabled auto-merge (rebase) September 27, 2024 14:05
@Veykril Veykril merged commit 9f16419 into martinvonz:main Oct 14, 2024
18 checks passed
@Veykril Veykril deleted the veykril/push-ulvyowmotxtr branch October 14, 2024 19:05
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.

jj crashes on shallow git repositories (cloned with --depth 20)
4 participants