diff mbox series

[v2,5/7] worktree: update renamed variable in comment

Message ID dbbc57cd833f95a59ef82ecac6046a43cd88cc31.1600281351.git.martin.agren@gmail.com (mailing list archive)
State Accepted
Commit cfaf9f05c6174b520082036c0f1439adf9c4fbf7
Headers show
Series various wt-status/worktree cleanups | expand

Commit Message

Martin Ågren Sept. 27, 2020, 1:15 p.m. UTC
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>
---
 worktree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/worktree.c b/worktree.c
index a37d543394..5c9ecec466 100644
--- a/worktree.c
+++ b/worktree.c
@@ -21,7 +21,7 @@  void free_worktrees(struct worktree **worktrees)
 }
 
 /**
- * Update head_sha1, head_ref and is_detached of the given worktree
+ * Update head_oid, head_ref and is_detached of the given worktree
  */
 static void add_head_info(struct worktree *wt)
 {