diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-05 11:31:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-05 11:31:32 -0700 |
commit | 723c31fea2f1c4994de837bda9022ffa8b6de1bb (patch) | |
tree | 4c8c636dd58a7489cf033f3ac8682aeab453385d /refs.h | |
parent | 7a662e896bcd391265477e304d7af6e5d2ca1deb (diff) | |
download | git-723c31fea2f1c4994de837bda9022ffa8b6de1bb.tar.gz |
Add "git_path()" and "head_ref()" helper functions.
"git_path()" returns a static pathname pointer into the git directory
using a printf-like format specifier.
"head_ref()" works like "for_each_ref()", except for just the HEAD.
Diffstat (limited to 'refs.h')
-rw-r--r-- | refs.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5,6 +5,7 @@ * Calls the specified function for each ref file until it returns nonzero, * and returns the value */ +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 **/ |