diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-03 10:01:38 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-03 10:01:38 -0700 |
commit | 944d858969e4e14adefdd8f21fac5c8ab45f83f7 (patch) | |
tree | 26f45f4e5544838e40132f579fb86f9ff006688f /refs.h | |
parent | 7ec4e60819764128351d526a77859a403c0d4ff4 (diff) | |
download | git-944d858969e4e14adefdd8f21fac5c8ab45f83f7.tar.gz git-944d858969e4e14adefdd8f21fac5c8ab45f83f7.tar.xz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |