summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87a3d29)
raw | patch | inline | side by side (parent: 87a3d29)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 31 Dec 2006 08:59:53 +0000 (00:59 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 31 Dec 2006 08:59:53 +0000 (00:59 -0800) |
Everybody else uses is_null_sha1() -- there is no point to have its
own is_zero_sha1() anymore.
Signed-off-by: Junio C Hamano <junkio@cox.net>
own is_zero_sha1() anymore.
Signed-off-by: Junio C Hamano <junkio@cox.net>
send-pack.c | patch | blob | history |
diff --git a/send-pack.c b/send-pack.c
index 54de96e40c36428373b21f3dec4939cef767a900..29cf73681f3caf0b91b0d7d11cafbfcd6c4bf8d0 100644 (file)
--- a/send-pack.c
+++ b/send-pack.c
static int force_update;
static int use_thin_pack;
-static int is_zero_sha1(const unsigned char *sha1)
-{
- int i;
-
- for (i = 0; i < 20; i++) {
- if (*sha1++)
- return 0;
- }
- return 1;
-}
-
static void exec_pack_objects(void)
{
static const char *args[] = {
if (!force_update &&
!delete_ref &&
- !is_zero_sha1(ref->old_sha1) &&
+ !is_null_sha1(ref->old_sha1) &&
!ref->force) {
if (!has_sha1_file(ref->old_sha1) ||
!ref_newer(ref->peer_ref->new_sha1,