revision: trivial style fixes
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
35b2fa5ba3
commit
9e57ac55ce
@ -2987,7 +2987,7 @@ static struct commit *get_revision_internal(struct rev_info *revs)
|
||||
if (revs->max_count) {
|
||||
c = get_revision_1(revs);
|
||||
if (c) {
|
||||
while (0 < revs->skip_count) {
|
||||
while (revs->skip_count > 0) {
|
||||
revs->skip_count--;
|
||||
c = get_revision_1(revs);
|
||||
if (!c)
|
||||
@ -3002,9 +3002,8 @@ static struct commit *get_revision_internal(struct rev_info *revs)
|
||||
if (c)
|
||||
c->object.flags |= SHOWN;
|
||||
|
||||
if (!revs->boundary) {
|
||||
if (!revs->boundary)
|
||||
return c;
|
||||
}
|
||||
|
||||
if (!c) {
|
||||
/*
|
||||
@ -3050,9 +3049,8 @@ struct commit *get_revision(struct rev_info *revs)
|
||||
|
||||
if (revs->reverse) {
|
||||
reversed = NULL;
|
||||
while ((c = get_revision_internal(revs))) {
|
||||
while ((c = get_revision_internal(revs)))
|
||||
commit_list_insert(c, &reversed);
|
||||
}
|
||||
revs->commits = reversed;
|
||||
revs->reverse = 0;
|
||||
revs->reverse_output_stage = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user