Skip to content

Add progress meter to checkout - #551

Merged
technoweenie merged 2 commits into
git-lfs:masterfrom
sinbad:checkout-progress
Aug 4, 2015
Merged

technoweenie merged 2 commits into
git-lfs:masterfrom
sinbad:checkout-progress

Conversation

@sinbad

@sinbad sinbad commented Jul 31, 2015

Copy link
Copy Markdown
Contributor

Only displayed when running a separate checkout command, not on pull (lets the download queue do the progress to avoid mixing the 2)

@technoweenie

Copy link
Copy Markdown
Contributor

It doesn't seem to output any progress until it's done:

$ GIT_TRACE=1 git lfs checkout
10:42:23.755943 git.c:555               trace: exec: 'git-lfs' 'checkout'
10:42:23.756430 run-command.c:351       trace: run_command: 'git-lfs' 'checkout'
trace git-lfs: run_command: 'git' rev-parse HEAD
trace git-lfs: run_command: git ls-tree -r -l --full-tree 089268aa349414ff230f5f3d72774477cb0844cb
trace git-lfs: run_command: git cat-file --batch
(40 of 40 files) 483.14 MB / 483.14 MB

Comment thread commands/command_checkout.go Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ah, you need to call Start() on progress. See #547

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah OK, Start() wasn't there until I rebased, done now. You have to use quite big files to see the progress otherwise most of the time (1-2s) is spent at the end waiting for the update-index process to stop.

@rubyist

rubyist commented Aug 3, 2015

Copy link
Copy Markdown
Contributor

This looks good, I added a note in #558 that mentions how we could use verbose output from git update-index to provide some progress around that extra end time, if needed. I don't think that needs to happen in this PR, necessarily.

@technoweenie

Copy link
Copy Markdown
Contributor

Merging this for now. Some update-index progress will be nice though.

technoweenie added a commit that referenced this pull request Aug 4, 2015
@technoweenie
technoweenie merged commit 1a18ff6 into git-lfs:master Aug 4, 2015
@sinbad
sinbad deleted the checkout-progress branch August 6, 2015 16:19
@sschuberth

Copy link
Copy Markdown
Member

Is this supposed to display progress if a checkout actually needs to download a (big) file that's not in the local cache yet? Or is it only supposed to show progress of the copy from local cache to working tree? I'm asking because I don't see any progress in the first case with git-lfs 1.1.0 on Windows.

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.

4 participants