summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:01:38 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:01:38 -0700
commit944d858969e4e14adefdd8f21fac5c8ab45f83f7 (patch)
tree26f45f4e5544838e40132f579fb86f9ff006688f /refs.h
parent7ec4e60819764128351d526a77859a403c0d4ff4 (diff)
downloadgit-944d858969e4e14adefdd8f21fac5c8ab45f83f7.tar.gz
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.
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 1 insertions, 1 deletions
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);