@@ -1519,7 +1519,7 @@ struct cmdline_pathspec {
15191519static void append_prune_data (struct cmdline_pathspec * prune , const char * * av )
15201520{
15211521 while (* av ) {
1522- ALLOC_GROW (prune -> path , prune -> nr + 1 , prune -> alloc );
1522+ ALLOC_GROW (prune -> path , prune -> nr + 1 , prune -> alloc );
15231523 prune -> path [prune -> nr ++ ] = * (av ++ );
15241524 }
15251525}
@@ -1531,7 +1531,7 @@ static void read_pathspec_from_stdin(struct rev_info *revs, struct strbuf *sb,
15311531 int len = sb -> len ;
15321532 if (len && sb -> buf [len - 1 ] == '\n' )
15331533 sb -> buf [-- len ] = '\0' ;
1534- ALLOC_GROW (prune -> path , prune -> nr + 1 , prune -> alloc );
1534+ ALLOC_GROW (prune -> path , prune -> nr + 1 , prune -> alloc );
15351535 prune -> path [prune -> nr ++ ] = xstrdup (sb -> buf );
15361536 }
15371537}
@@ -2134,7 +2134,7 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
21342134 * call init_pathspec() to set revs->prune_data here.
21352135 * }
21362136 */
2137- ALLOC_GROW (prune_data .path , prune_data .nr + 1 , prune_data .alloc );
2137+ ALLOC_GROW (prune_data .path , prune_data .nr + 1 , prune_data .alloc );
21382138 prune_data .path [prune_data .nr ++ ] = NULL ;
21392139 parse_pathspec (& revs -> prune_data , 0 , 0 ,
21402140 revs -> prefix , prune_data .path );
@@ -2987,7 +2987,7 @@ static struct commit *get_revision_internal(struct rev_info *revs)
29872987 if (revs -> max_count ) {
29882988 c = get_revision_1 (revs );
29892989 if (c ) {
2990- while (0 < revs -> skip_count ) {
2990+ while (revs -> skip_count > 0 ) {
29912991 revs -> skip_count -- ;
29922992 c = get_revision_1 (revs );
29932993 if (!c )
@@ -3002,9 +3002,8 @@ static struct commit *get_revision_internal(struct rev_info *revs)
30023002 if (c )
30033003 c -> object .flags |= SHOWN ;
30043004
3005- if (!revs -> boundary ) {
3005+ if (!revs -> boundary )
30063006 return c ;
3007- }
30083007
30093008 if (!c ) {
30103009 /*
@@ -3050,9 +3049,8 @@ struct commit *get_revision(struct rev_info *revs)
30503049
30513050 if (revs -> reverse ) {
30523051 reversed = NULL ;
3053- while ((c = get_revision_internal (revs ))) {
3052+ while ((c = get_revision_internal (revs )))
30543053 commit_list_insert (c , & reversed );
3055- }
30563054 revs -> commits = reversed ;
30573055 revs -> reverse = 0 ;
30583056 revs -> reverse_output_stage = 1 ;
0 commit comments