Commit 228b538
authored
gvfs-helper: simplify progress output during prefetch (#594)
* [x] This change only applies to interactions with Azure DevOps and the
GVFS Protocol.
A user reported confusion when presented with the progress indicators
for several `git index-pack` subprocesses during a prefetch. This
happened by surprise, and is related to our issues with GVFS Cache
Servers rejecting credentials and thus halting background maintenance
until a foreground fetch happens.
In the meantime, we can modify our progress output to be simpler in this
case. There are two changes:
1. We unconditionally stifle output from `git index-pack`. It would be
preferrable to pass a `-q` parameter, but it is not available. This
prevents two progress indicators per prefetch packfile.
2. We add a conditional `Installing prefetch packfiles: ..% (X/Y)`
indicator in the loop that installs these packfiles via `git
index-pack`. This shows progress feedback frequently enough that users
know something is happening without overwhelming their terminal
interface.1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1855 | 1855 | | |
1856 | 1856 | | |
1857 | 1857 | | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
| 1858 | + | |
| 1859 | + | |
1865 | 1860 | | |
1866 | 1861 | | |
1867 | 1862 | | |
| |||
2350 | 2345 | | |
2351 | 2346 | | |
2352 | 2347 | | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
2353 | 2351 | | |
2354 | 2352 | | |
| 2353 | + | |
2355 | 2354 | | |
2356 | 2355 | | |
2357 | 2356 | | |
2358 | 2357 | | |
| 2358 | + | |
2359 | 2359 | | |
2360 | 2360 | | |
2361 | 2361 | | |
| |||
0 commit comments