git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
a7b9430
)
log_tree_diff: get rid of extra check for NULL
author
Sergey Organov
<redacted>
Fri, 28 Aug 2020 11:05:26 +0000
(14:05 +0300)
committer
Junio C Hamano
<redacted>
Sun, 6 Sep 2020 17:33:19 +0000
(10:33 -0700)
Get rid of needless check of 'parents' for NULL. The NULL case
is already handled right above, and 'parents' is dereferenced
without check below anyway.
Signed-off-by: Sergey Organov <redacted>
Signed-off-by: Junio C Hamano <redacted>
log-tree.c
patch
|
blob
|
history
diff --git
a/log-tree.c
b/log-tree.c
index c01932fa72bf32e4b5de401c64344f8bd509cb68..8ac285a25af58e73801263cb2ddd026ed6b7521d 100644
(file)
--- a/
log-tree.c
+++ b/
log-tree.c
@@
-917,7
+917,7
@@
static int log_tree_diff(struct rev_info *opt, struct commit *commit, struct log
}
/* More than one parent? */
- if (parents
&& parents
->next) {
+ if (parents->next) {
if (opt->ignore_merges)
return 0;
else if (opt->combine_merges)
git clone https://git.99rst.org/PROJECT