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

examples: add example for pulling changes #546

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

orirawlings
Copy link
Contributor

A question came up in #545 about how to conduct the equivalent of git pull with the library. I suspect that the appropriate method was overlooked at first because it is under the Worktree type instead of the Repository type (where the Clone/Fetch/Push methods live).

This PR adds some example code to demonstrate getting the Worktree for a repository and issuing a Pull from the origin remote.

@codecov
Copy link

codecov bot commented Aug 14, 2017

Codecov Report

Merging #546 into master will decrease coverage by 0.6%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #546      +/-   ##
==========================================
- Coverage   78.08%   77.48%   -0.61%     
==========================================
  Files         129      129              
  Lines        9798     9798              
==========================================
- Hits         7651     7592      -59     
- Misses       1316     1388      +72     
+ Partials      831      818      -13
Impacted Files Coverage Δ
plumbing/transport/ssh/common.go 20.54% <0%> (-45.21%) ⬇️
plumbing/transport/ssh/auth_method.go 31.57% <0%> (-22.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b51e316...5ed7c5c. Read the comment docs.

@mcuadros mcuadros changed the title Add example for pulling changes examples: add example for pulling changes Aug 14, 2017
@mcuadros mcuadros merged commit 118a8c7 into src-d:master Aug 14, 2017
# 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.

2 participants