diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-18 06:15:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-06-20 11:38:17 -0700 |
commit | 067622b0e8afde8b39884e221b7a56299036f6d9 (patch) | |
tree | 01e394626fa6973e4565caadaf584560c5a1cd6c /refs/refs-internal.h | |
parent | refs: remove unnecessary "extern" keywords (diff) | |
download | tgif-067622b0e8afde8b39884e221b7a56299036f6d9.tar.xz |
do_for_each_ref(): move docstring to the header file
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
-rw-r--r-- | refs/refs-internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h index 1bb3d87dc5..b4dd5453ea 100644 --- a/refs/refs-internal.h +++ b/refs/refs-internal.h @@ -249,7 +249,15 @@ int rename_ref_available(const char *oldname, const char *newname); #define DO_FOR_EACH_INCLUDE_BROKEN 0x01 /* - * The common backend for the for_each_*ref* functions + * Call fn for each reference in the specified submodule for which the + * refname begins with base. If trim is non-zero, then trim that many + * characters off the beginning of each refname before passing the + * refname to fn. flags can be DO_FOR_EACH_INCLUDE_BROKEN to include + * broken references in the iteration. If fn ever returns a non-zero + * value, stop the iteration and return that value; otherwise, return + * 0. + * + * This is the common backend for the for_each_*ref* functions. */ int do_for_each_ref(const char *submodule, const char *base, each_ref_fn fn, int trim, int flags, void *cb_data); |