projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GIT 1.0.0a
[git.git]
/
refs.h
diff --git
a/refs.h
b/refs.h
index
7565dec
..
2625596
100644
(file)
--- a/
refs.h
+++ b/
refs.h
@@
-5,7
+5,8
@@
* Calls the specified function for each ref file until it returns nonzero,
* and returns the value
*/
* 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 head_ref(int (*fn)(const char *path, const 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);
/** Reads the refs file specified into sha1 **/
extern int get_ref_sha1(const char *ref, unsigned char *sha1);