Commit Graph

6 Commits

Author SHA1 Message Date
Johannes Sixt
6c57d92b00 Merge commit 'a77a33a51df9b7655d80299487ec6fbb10445496'
This is an evil merge: The following files needed extra edits so that the
result can be compiled:
	fetch.c
	git-compat-util.h
	reachable.c
2007-07-17 22:22:41 +02:00
Johannes Sixt
ddb51d3baf Make the progress indicator work when the total runtime is unknown.
In order to allow progress indication when the total runtime is unknown,
as well as if the total runtime is so long that the progress indicator
stays at the same percentage for more than a second, an update of the
indicator is forced every second.

On Unix a time signal is received, which forces the update.

On Windows we don't have signals. For this reason, a thread is spawned
that forces the update every second.
2007-05-24 09:28:07 +02:00
Alex Riesen
421f9d1685 Fix the progress code to output LF only when it is really needed
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-05-23 11:30:49 -07:00
Nicolas Pitre
180a9f2268 provide a facility for "delayed" progress reporting
This allows for progress to be displayed only if the progress has not
reached a specified percentage treshold within a given delay in seconds.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-04-22 22:18:05 -07:00
Nicolas Pitre
13aaf14825 make progress "title" part of the common progress interface
If the progress bar ends up in a box, better provide a title for it too.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-04-22 22:18:05 -07:00
Nicolas Pitre
96a02f8f6d common progress display support
Instead of having this code duplicated in multiple places, let's have
a common interface for progress display.  If someday someone wishes to
display a cheezy progress bar instead then only one file will have to
be changed.

Note: I left merge-recursive.c out since it has a strange notion of
progress as it apparently increase the expected total number as it goes.
Someone with more intimate knowledge of what that is supposed to mean
might look at converting it to the common progress interface.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2007-04-22 22:18:05 -07:00