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

Remove support for Git push/pull and gists #5013

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

ChrisPenner
Copy link
Contributor

@ChrisPenner ChrisPenner commented May 28, 2024

Overview

Git support has long been deprecated in favour of using Unison Share.

This removes all support for pushing and pulling to git repositories as well as the ability to create gists.

This was spurred on by the migration to a project-centric approach without a singular codebase root branch, since continuing to support git with this model would require re-implementing most git sync methods.

Implementation notes

  • deletes all code paths related to pushing/pulling or creating gists in Git repositories.
  • deletes the gist command
  • deletes all git-related tests

Interesting/controversial decisions

I don't think anyone's still actively using the git integration, if we were to ever bring it back we'd probably want to use a Share-style sync rather than Sync22.

Test coverage

I deleted all the tests 😎

Loose ends

Should we also delete the Sync22 machinery?

deriving (Eq)

-- | Open the codebase at the given location, or create it if one doesn't already exist.
withOpenOrCreateCodebase ::
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was surprised this was now unused, it turns out there's actually a separate withOpenOrCreateCodebase in Unison.Codebase.Init 🤷🏼‍♂️

@ChrisPenner ChrisPenner mentioned this pull request May 28, 2024
@ChrisPenner ChrisPenner marked this pull request as ready for review May 28, 2024 17:41
@aryairani
Copy link
Contributor

I forgot about gists!

@aryairani aryairani merged commit 1abcce0 into trunk May 29, 2024
19 checks passed
@aryairani aryairani deleted the cp/remove-git-support branch May 29, 2024 12:28
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