Skip to content

Commit cfaf9f0

Browse files
Martin Ågrengitster
authored andcommitted
worktree: update renamed variable in comment
The comment above `add_head_info()` mentions "head_sha1", but it was renamed to "head_oid" in 0f05154 ("worktree: convert struct worktree to object_id", 2017-10-15). Update the comment. Signed-off-by: Martin Ågren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ef2d554 commit cfaf9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worktree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void free_worktrees(struct worktree **worktrees)
2121
}
2222

2323
/**
24-
* Update head_sha1, head_ref and is_detached of the given worktree
24+
* Update head_oid, head_ref and is_detached of the given worktree
2525
*/
2626
static void add_head_info(struct worktree *wt)
2727
{

0 commit comments

Comments
 (0)