Skip to content

Commit

Permalink
builtin/log.c: minor reformat
Browse files Browse the repository at this point in the history
Two logical lines that were not overly long was split in the middle,
which made them read worse.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Aug 25, 2015
1 parent 82dee41 commit 3acf8dd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions builtin/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ static int cmd_log_walk(struct rev_info *rev)
* retain that state information if replacing rev->diffopt in this loop
*/
while ((commit = get_revision(rev)) != NULL) {
if (!log_tree_commit(rev, commit) &&
rev->max_count >= 0)
if (!log_tree_commit(rev, commit) && rev->max_count >= 0)
/*
* We decremented max_count in get_revision,
* but we didn't actually show the commit.
Expand Down Expand Up @@ -1464,8 +1463,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
continue;
}

if (ignore_if_in_upstream &&
has_commit_patch_id(commit, &ids))
if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
continue;

nr++;
Expand Down

0 comments on commit 3acf8dd

Please sign in to comment.