Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Repository API for creating references #486

Closed
wants to merge 1 commit into from

Conversation

orirawlings
Copy link
Contributor

A few issues have been reported recently (#481 and #430) that relate to some API confusion around creating new references for a repository.

I'm curious if there is some benefit to providing some high level API in Repository to enable the creation of branches and/or tags.

I threw together this patch to gather some quick feedback on whether this is something beneficial for the project, and to see if the API makes sense. I started with CreateBranch for now. Tests, further documentation, and demo examples are pending.

I figured that sticking to the options pattern for the arguments to CreateBranch would give us the ability to extend this easily in the future to support other features available in the standard git branch tool. Such features include configuring an upstream branches, tracking branches, editing description, etc.

@mcuadros
Copy link
Contributor

This is related to #487

@orirawlings
Copy link
Contributor Author

Closing for now

@orirawlings orirawlings closed this Aug 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants