From a4552ceb8a7666e50b5e6ca3ffaecf0c4fc4994c Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 1 Dec 2013 08:49:14 +0100 Subject: environment: normalize use of prefixcmp() by removing " != 0" To be able to automatically convert prefixcmp() to starts_with() we need first to make sure that prefixcmp() is always used in the same way. So let's remove " != 0" after prefixcmp(). Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano diff --git a/environment.c b/environment.c index 0a15349..cd2b068 100644 --- a/environment.c +++ b/environment.c @@ -171,7 +171,7 @@ const char *get_git_namespace(void) const char *strip_namespace(const char *namespaced_ref) { - if (prefixcmp(namespaced_ref, get_git_namespace()) != 0) + if (prefixcmp(namespaced_ref, get_git_namespace())) return NULL; return namespaced_ref + namespace_len; } -- cgit v0.10.2-6-g49f6 From 3fb5aead2971c6181dbf143295c427175b8bf082 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sun, 1 Dec 2013 08:49:15 +0100 Subject: builtin/remote: remove postfixcmp() and use suffixcmp() instead Commit 8cc5b290 (git merge -X