From 944d858969e4e14adefdd8f21fac5c8ab45f83f7 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 3 Jul 2005 10:01:38 -0700 Subject: Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache It needed to take the GIT_DIR information into account, something that the original receive-pack usage just never cared about. --- refs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'refs.h') diff --git a/refs.h b/refs.h index 7565decb0f..a79cb13cd9 100644 --- a/refs.h +++ b/refs.h @@ -5,7 +5,7 @@ * Calls the specified function for each ref file until it returns nonzero, * and returns the value */ -extern int for_each_ref(int (*fn)(const char *path, unsigned char *sha1)); +extern int for_each_ref(int (*fn)(const char *path, const unsigned char *sha1)); /** Reads the refs file specified into sha1 **/ extern int get_ref_sha1(const char *ref, unsigned char *sha1); -- cgit v1.2.3