提交 3acf8dd8 编写于 作者: J Junio C Hamano

builtin/log.c: minor reformat

Two logical lines that were not overly long was split in the middle,
which made them read worse.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 82dee416
...@@ -342,8 +342,7 @@ static int cmd_log_walk(struct rev_info *rev) ...@@ -342,8 +342,7 @@ static int cmd_log_walk(struct rev_info *rev)
* retain that state information if replacing rev->diffopt in this loop * retain that state information if replacing rev->diffopt in this loop
*/ */
while ((commit = get_revision(rev)) != NULL) { while ((commit = get_revision(rev)) != NULL) {
if (!log_tree_commit(rev, commit) && if (!log_tree_commit(rev, commit) && rev->max_count >= 0)
rev->max_count >= 0)
/* /*
* We decremented max_count in get_revision, * We decremented max_count in get_revision,
* but we didn't actually show the commit. * but we didn't actually show the commit.
...@@ -1464,8 +1463,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix) ...@@ -1464,8 +1463,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
continue; continue;
} }
if (ignore_if_in_upstream && if (ignore_if_in_upstream && has_commit_patch_id(commit, &ids))
has_commit_patch_id(commit, &ids))
continue; continue;
nr++; nr++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册