Re: [PATCH v3 13/17] read-tree: show progress by default
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Oct 14, 2019, 20:31 UTC
- Message-ID
- <7887efb4-60de-f6d1-6cba-5ccb60645c52@gmail.com>
- In-Reply-To
- <CABPp-BH0pN5noDpFH286YFHC22+SNr9ZuyJxuy=WzNPQ=cyxfg@mail.gmail.com>
On 10/12/2019 6:16 PM, Elijah Newren wrote:
Show 18 quoted lines
> On Mon, Oct 7, 2019 at 1:08 PM Derrick Stolee via GitGitGadget > <gitgitgadget@gmail.com> wrote: >> >> From: Derrick Stolee <dstolee@microsoft.com> >> >> The read-tree builtin has a --verbose option that signals to show >> progress and other data while updating the index. Update this to >> be on by default when stderr is a terminal window. >> >> This will help tools like 'git sparse-checkout' to automatically >> benefit from progress indicators when a user runs these commands. > > This change seems fine, but in patch 2 you said: > >> The use of running another process for 'git read-tree' is sub- >> optimal. This will be removed in a later change. > > leaving me slightly confused about the goal/plan.
True, this is not necessary for the whole series. I created this patch as a way to show progress in our microsoft/git fork [1], then removed the read-tree call in a later change [2]. When preparing v3, I took all of the changes together.
I thought this was valuable on its own, for those users who are using the old mechanisms for sparse-checkout updates.
Thanks, -Stolee
[1] https://github.com/microsoft/git/pull/200
[2] https://github.com/microsoft/git/pull/204