@matheusbsbs / matheus-bagliano / commits / cfaf9f05c6
Fork 0

worktree: update renamed variable in comment

The comment above `add_head_info()` mentions "head_sha1", but it was renamed to "head_oid" in 0f05154c70 ("worktree: convert struct worktree to object_id", 2017-10-15). Update the comment. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Martin Ågren committed Sep 27, 2020 at 15:15 UTC cfaf9f05c6174b520082036c0f1439adf9c4fbf7
1 file changed +1 -1
worktree.c
+1 -1
@@ -21,7 +21,7 @@ void free_worktrees(struct worktree **worktrees)
21 }
22
23 /**
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
25 */
26 static void add_head_info(struct worktree *wt)
27 {