Skip to content

Commit e35b6ac

Browse files
szedergitster
authored andcommitted
revision.h: turn rev_info.early_output back into an unsigned int
rev_info.early_output started out as an unsigned int in cdcefbc (Add "--early-output" log flag for interactive GUI use, 2007-11-03), but later it was turned into a single bit in a bit field in cc243c3 (show: --ignore-missing, 2011-05-18) without explanation, though the code using it still expects it to be a regular integer type and uses it as a counter. Consequently, any even number given via '--early-output=<N>', or indeed a plain '--early-output' defaulting to 100 effectively disabled the feature. Turn rev_info.early_output back into its origin unsigned int data type, making '--early-output' work again. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 773e3a2 commit e35b6ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

revision.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ struct rev_info {
7474
/* topo-sort */
7575
enum rev_sort_order sort_order;
7676

77-
unsigned int early_output:1,
78-
ignore_missing:1,
77+
unsigned int early_output;
78+
79+
unsigned int ignore_missing:1,
7980
ignore_missing_links:1;
8081

8182
/* Traversal flags */

0 commit comments

Comments
 (0)