threads / patch / 42236

patchworktree.c: fix typo

Subject: [PATCH] worktree.c: fix typo

## tl;dr

One message between May 6, 2016 and May 6, 2016. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Li Peng· May 6, 2016, 11:39 UTC · lore
Fix a typo in comment.
Signed-off-by: Li Peng <lip@dtdream.com>
---
 worktree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to worktree.c +1 −1
diff --git a/worktree.c b/worktree.c
index 6181a66..89ebe67 100644
--- a/worktree.c
+++ b/worktree.c
@@ -18,7 +18,7 @@ void free_worktrees(struct worktree **worktrees)
 
 /*
  * read 'path_to_ref' into 'ref'.  Also if is_detached is not NULL,
- * set is_detached to 1 (0) if the ref is detatched (is not detached).
+ * set is_detached to 1 (0) if the ref is detached (is not detached).
  *
  * $GIT_COMMON_DIR/$symref (e.g. HEAD) is practically outside $GIT_DIR so
  * for linked worktrees, `resolve_ref_unsafe()` won't work (it uses
-- 
1.8.3.1

← back to recent threads