git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 22/28] http-push.c cleanup

From
DRDavid Rientjes <rientjes@google.com>
Date
Aug 14, 2006, 20:37 UTC
Message-ID
<Pine.LNX.4.63.0608141336200.19383@chino.corp.google.com>
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
Message 1 of 1 in “http-push.c cleanup”
  1. 22/28 http-push.c cleanupDavid Rientjes, Aug 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.