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

[CLI] UIpdate git package to use a client #161

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Conversation

jhnstn
Copy link
Member

@jhnstn jhnstn commented Oct 11, 2023

This replaces the existing git functions with a client interface.
This simplifies the cases where multiple git commands are used.

Example

// git package imported as `g`
git := g.NewGitClient(directory, true)
git.Clone(repo, "depth=1")
git.Switch(branch, "--create")
...
git.Push()

@jhnstn jhnstn requested a review from derekblank October 11, 2023 19:53
@jhnstn jhnstn enabled auto-merge (squash) October 11, 2023 19:53
Copy link
Contributor

@derekblank derekblank left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@jhnstn jhnstn merged commit ddadac7 into trunk Oct 11, 2023
1 check passed
@jhnstn jhnstn deleted the cli/update-git-client branch October 11, 2023 23:37
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