File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 8
8
* published by the Free Software Foundation.
9
9
*/
10
10
11
+ #define GIT_TEST_PROGRESS_ONLY
11
12
#include "cache.h"
12
13
#include "gettext.h"
13
14
#include "progress.h"
@@ -52,7 +53,6 @@ static volatile sig_atomic_t progress_update;
52
53
*/
53
54
int progress_testing ;
54
55
uint64_t progress_test_ns = 0 ;
55
- void progress_test_force_update (void ); /* To silence -Wmissing-prototypes */
56
56
void progress_test_force_update (void )
57
57
{
58
58
progress_update = 1 ;
Original file line number Diff line number Diff line change 3
3
4
4
struct progress ;
5
5
6
+ #ifdef GIT_TEST_PROGRESS_ONLY
7
+
8
+ extern int progress_testing ;
9
+ extern uint64_t progress_test_ns ;
10
+ void progress_test_force_update (void );
11
+
12
+ #endif
13
+
6
14
void display_throughput (struct progress * progress , uint64_t total );
7
15
void display_progress (struct progress * progress , uint64_t n );
8
16
struct progress * start_progress (const char * title , uint64_t total );
Original file line number Diff line number Diff line change 13
13
*
14
14
* See 't0500-progress-display.sh' for examples.
15
15
*/
16
+ #define GIT_TEST_PROGRESS_ONLY
16
17
#include "test-tool.h"
17
18
#include "gettext.h"
18
19
#include "parse-options.h"
19
20
#include "progress.h"
20
21
#include "strbuf.h"
21
22
22
- /*
23
- * These are defined in 'progress.c', but are not exposed in 'progress.h',
24
- * because they are exclusively for testing.
25
- */
26
- extern int progress_testing ;
27
- extern uint64_t progress_test_ns ;
28
- void progress_test_force_update (void );
29
-
30
23
int cmd__progress (int argc , const char * * argv )
31
24
{
32
25
int total = 0 ;
You can’t perform that action at this time.
0 commit comments