summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-02-23 21:36:08 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-24 18:01:13 (GMT)
commite85486450eb0407ad0449d0214b97506d452407f (patch)
tree43189c7f235bfbcb0f5cefdb86384307a6bfcc2b /refs.c
parent9d561ad324fc8942919981f2c80360e22896989c (diff)
downloadgit-e85486450eb0407ad0449d0214b97506d452407f.zip
git-e85486450eb0407ad0449d0214b97506d452407f.tar.gz
git-e85486450eb0407ad0449d0214b97506d452407f.tar.bz2
Be more verbose when checkout takes a long time
So I find it irritating when git thinks for a long time without telling me what's taking so long. And by "long time" I definitely mean less than two seconds, which is already way too long for me. This hits me when doing a large pull and the checkout takes a long time, or when just switching to another branch that is old and again checkout takes a while. Now, git read-tree already had support for the "-v" flag that does nice updates about what's going on, but it was delayed by two seconds, and if the thing had already done more than half by then it would be quiet even after that, so in practice it meant that we migth be quiet for up to four seconds. Much too long. So this patch changes the timeout to just one second, which makes it much more palatable to me. The other thing this patch does is that "git checkout" now doesn't disable the "-v" flag when doing its thing, and only disables the output when given the -q flag. When allowing "checkout -m" to fall back to a 3-way merge, the users will see the error message from straight "checkout", so we will tell them that we do fall back to make them look less scary. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
0 files changed, 0 insertions, 0 deletions