diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-05 06:38:22 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-05 06:38:22 -0800 |
commit | 264628a2b3a5cb6c7671ea87ceecab941ec290e9 (patch) | |
tree | 1ff25b95990273abc7d5b902baf4ae0c7cbe822a /refs.h | |
parent | 189627cd588c2937de7b655595b8ed777f445c85 (diff) | |
download | git-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.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 *); |