Skip to content

Commit 7f820bd

Browse files
mhaggergitster
authored andcommitted
resolve_gitlink_ref(): improve docstring
Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3b12482 commit 7f820bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

refs.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ extern char *shorten_unambiguous_ref(const char *refname, int strict);
133133
/** rename ref, return 0 on success **/
134134
extern int rename_ref(const char *oldref, const char *newref, const char *logmsg);
135135

136-
/** resolve ref in nested "gitlink" repository */
137-
extern int resolve_gitlink_ref(const char *name, const char *refname, unsigned char *sha1);
136+
/**
137+
* Resolve refname in the nested "gitlink" repository that is located
138+
* at path. If the resolution is successful, return 0 and set sha1 to
139+
* the name of the object; otherwise, return a non-zero value.
140+
*/
141+
extern int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *sha1);
138142

139143
/** lock a ref and then write its file */
140144
enum action_on_err { MSG_ON_ERR, DIE_ON_ERR, QUIET_ON_ERR };

0 commit comments

Comments
 (0)