Browse Source
* np/progress: Show total transferred as part of throughput progress make sure throughput display gets updated even if progress doesn't move return the prune-packed progress display to the inner loop add throughput display to git-push add some copyright notice to the progress display code add throughput display to index-pack add throughput to progress display relax usage of the progress API make struct progress an opaque type prune-packed: don't call display_progress() for every file Stop displaying "Pack pack-$ID created." during git-gc Teach prune-packed to use the standard progress meter Change 'Deltifying objects' to 'Compressing objects' fix for more minor memory leaks fix const issues with some functions pack-objects.c: fix some global variable abuse and memory leaks pack-objects: no delta possible with only one object in the list cope with multiple line breaks within sideband progress messages more compact progress displaymaint
Junio C Hamano
17 years ago
13 changed files with 276 additions and 138 deletions
@ -1,22 +1,13 @@
@@ -1,22 +1,13 @@
|
||||
#ifndef PROGRESS_H |
||||
#define PROGRESS_H |
||||
|
||||
struct progress { |
||||
const char *prefix; |
||||
unsigned total; |
||||
unsigned last_percent; |
||||
unsigned delay; |
||||
unsigned delayed_percent_treshold; |
||||
const char *delayed_title; |
||||
int need_lf; |
||||
}; |
||||
struct progress; |
||||
|
||||
void display_throughput(struct progress *progress, unsigned long n); |
||||
int display_progress(struct progress *progress, unsigned n); |
||||
void start_progress(struct progress *progress, const char *title, |
||||
const char *prefix, unsigned total); |
||||
void start_progress_delay(struct progress *progress, const char *title, |
||||
const char *prefix, unsigned total, |
||||
unsigned percent_treshold, unsigned delay); |
||||
void stop_progress(struct progress *progress); |
||||
struct progress *start_progress(const char *title, unsigned total); |
||||
struct progress *start_progress_delay(const char *title, unsigned total, |
||||
unsigned percent_treshold, unsigned delay); |
||||
void stop_progress(struct progress **progress); |
||||
|
||||
#endif |
||||
|
Loading…
Reference in new issue