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

*: package context support in Repository, Remote and Submodule #509

Merged
merged 1 commit into from
Jul 26, 2017
Merged

*: package context support in Repository, Remote and Submodule #509

merged 1 commit into from
Jul 26, 2017

Conversation

mcuadros
Copy link
Contributor

@mcuadros mcuadros commented Jul 25, 2017

The following method has being added in order to support contexts in the main package, following the standard library pattern, instead of modifying the current methods, the following *Context were added:

type Remote
    func (r *Remote) FetchContext(ctx context.Context, o *FetchOptions) error
    func (r *Remote) PushContext(ctx context.Context, o *PushOptions) error
type Repository
    func CloneContext(ctx context.Context, s storage.Storer, worktree billy.Filesystem, o *CloneOptions) 
    func PlainCloneContext(ctx context.Context, path string, isBare bool, o *CloneOptions) (*Repository, error)
    func (r *Repository) PushContext(ctx context.Context, o *PushOptions) error
    func (r *Repository) FetchContext(ctx context.Context, o *FetchOptions) error
type Submodule
    func (s *Submodule) UpdateContext(ctx context.Context, o *SubmoduleUpdateOptions) error
type Worktree
    func (w *Worktree) PullContext(ctx context.Context, o *PullOptions) error

@JoshuaSjoding PTAL

@mcuadros mcuadros merged commit e19163e into src-d:master Jul 26, 2017
@JoshuaSjoding
Copy link
Contributor

Splendid! I think these API changes are sufficient for #483.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants