aboutsummaryrefslogtreecommitdiff
path: root/unpack-trees.c
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2017-08-20 17:47:20 +0200
committerJunio C Hamano <gitster@pobox.com>2017-08-24 12:41:20 -0700
commit52f1d62eb44faf569edca360ec9af9ddd4045fe0 (patch)
tree7979586f27ca2d8a5c64872ddd69f15087332a77 /unpack-trees.c
parent3dc57ebfbd1bf30b9a6987f551af9b74641382a9 (diff)
downloadgit-52f1d62eb44faf569edca360ec9af9ddd4045fe0.tar.gz
git-52f1d62eb44faf569edca360ec9af9ddd4045fe0.tar.xz
convert: display progress for filtered objects that have been delayed
In 2841e8f ("convert: add "status=delayed" to filter process protocol", 2017-06-30) we taught the filter process protocol to delayed responses. These responses are processed after the "Checking out files" phase. If the processing takes noticeable time, then the user might think Git is stuck. Display the progress of the delayed responses to let the user know that Git is still processing objects. This works very well for objects that can be filtered quickly. If filtering of an individual object takes noticeable time, then the user might still think that Git is stuck. However, in that case the user would at least know what Git is doing. It would be technical more correct to display "Checking out files whose content filtering has been delayed". For brevity we only print "Filtering content". The finish_delayed_checkout() call was moved below the stop_progress() call in unpack-trees.c to ensure that the "Checking out files" progress is properly stopped before the "Filtering content" progress starts in finish_delayed_checkout(). Signed-off-by: Lars Schneider <larsxschneider@gmail.com> Suggested-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'unpack-trees.c')
-rw-r--r--unpack-trees.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-trees.c b/unpack-trees.c
index 78590f1bf..0013a1194 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -394,8 +394,8 @@ static int check_updates(struct unpack_trees_options *o)
}
}
}
- errs |= finish_delayed_checkout(&state);
stop_progress(&progress);
+ errs |= finish_delayed_checkout(&state);
if (o->update)
git_attr_set_direction(GIT_ATTR_CHECKIN, NULL);
return errs != 0;