From: David Rientjes <rientjes@google.com>
To: git@vger.kernel.org
Subject: [PATCH 22/28] http-push.c cleanup
Date: Mon, 14 Aug 2006 13:37:05 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.63.0608141336200.19383@chino.corp.google.com> (raw)
Removes conditional return.
David
Signed-off-by: David Rientjes <rientjes@google.com>
---
http-push.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/http-push.c b/http-push.c
index 0359ae5..511875f 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2186,10 +2186,7 @@ static int verify_merge_base(unsigned ch
struct commit *branch = lookup_commit(branch_sha1);
struct commit_list *merge_bases = get_merge_bases(head, branch, 1);
- if (merge_bases && !merge_bases->next && merge_bases->item == branch)
- return 1;
-
- return 0;
+ return (merge_bases && !merge_bases->next && merge_bases->item == branch)
}
static int delete_remote_branch(char *pattern, int force)
--
1.4.2.g89bb-dirty
reply other threads:[~2006-08-14 20:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.63.0608141336200.19383@chino.corp.google.com \
--to=rientjes@google.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).