X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=refs.h;h=e1c5803f9a5aba0b6ba18f5a9bd5192cba661542;hb=3b6e73a3b18336cf123993b191e3fab6442bd5a3;hp=ae33a5f74d65dda62c84deb1eaae1774a0d21214;hpb=f759c873a3772675dba050f28c33d585406291c3;p=git-core%2Fgit.git diff --git a/refs.h b/refs.h index ae33a5f74..e1c5803f9 100644 --- a/refs.h +++ b/refs.h @@ -10,10 +10,11 @@ struct worktree; /* * Resolve a reference, recursively following symbolic refererences. * - * Store the referred-to object's name in sha1 and return the name of - * the non-symbolic reference that ultimately pointed at it. The - * return value, if not NULL, is a pointer into either a static buffer - * or the input ref. + * Return the name of the non-symbolic reference that ultimately pointed + * at the resolved object name. The return value, if not NULL, is a + * pointer into either a static buffer or the input ref. + * + * If sha1 is non-NULL, store the referred-to object's name in it. * * If the reference cannot be resolved to an object, the behavior * depends on the RESOLVE_REF_READING flag: