summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4e9576)
raw | patch | inline | side by side (parent: f4e9576)
author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 25 Sep 2007 04:13:14 +0000 (00:13 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 25 Sep 2007 06:25:15 +0000 (23:25 -0700) |
Git style tends to prefer "!x" over "x == NULL". Make it so in
these handful of locations that were not following along.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
these handful of locations that were not following along.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c | patch | blob | history |
diff --git a/remote.c b/remote.c
index e3c3df556d540db887d0b0291a306fe073065d41..ac354f37959361a3d7ea9cd97198a487a4e3e176 100644 (file)
--- a/remote.c
+++ b/remote.c
int i;
if (find_src) {
- if (refspec->dst == NULL)
+ if (!refspec->dst)
return error("find_tracking: need either src or dst");
needle = refspec->dst;
result = &refspec->src;
if (!matched_src)
errs = 1;
- if (dst_value == NULL)
+ if (!dst_value)
dst_value = matched_src->name;
switch (count_refspec_match(dst_value, dst, &matched_dst)) {
dst_value);
break;
}
- if (errs || matched_dst == NULL)
+ if (errs || !matched_dst)
return 1;
if (matched_dst->peer_ref) {
errs = 1;