summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-05 06:38:22 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-05 06:38:22 -0800
commit264628a2b3a5cb6c7671ea87ceecab941ec290e9 (patch)
tree1ff25b95990273abc7d5b902baf4ae0c7cbe822a /refs.h
parent189627cd588c2937de7b655595b8ed777f445c85 (diff)
downloadgit-264628a2b3a5cb6c7671ea87ceecab941ec290e9.tar.gz
git-264628a2b3a5cb6c7671ea87ceecab941ec290e9.tar.bz2
git-264628a2b3a5cb6c7671ea87ceecab941ec290e9.zip
Imported Upstream version 1.8.0upstream/1.8.0
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/refs.h b/refs.h
index 33202b0d..d6c2fe2d 100644
--- a/refs.h
+++ b/refs.h
@@ -15,8 +15,11 @@ struct ref_lock {
#define REF_ISBROKEN 0x04
/*
- * 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. Please note that it is not safe to
+ * modify references while an iteration is in progress, unless the
+ * same callback function invocation that modifies the reference also
+ * returns a nonzero value to immediately stop the iteration.
*/
typedef int each_ref_fn(const char *refname, const unsigned char *sha1, int flags, void *cb_data);
extern int head_ref(each_ref_fn, void *);