Commit 82d71325af9661465ecf314c98d8eecc487befc4

Stefan Sperling 2019-01-06T12:31:33

improve wording of a comment in tree_checkout()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/worktree.c b/lib/worktree.c
index 82b3c5f..a4c0065 100644
--- a/lib/worktree.c
+++ b/lib/worktree.c
@@ -860,7 +860,7 @@ tree_checkout(struct got_worktree *worktree,
 	struct got_tree_entry *te;
 	size_t len;
 
-	/* Skip this tree if it is outside of our path prefix. */
+	/* Skip this tree if it shares no path components with the prefix. */
 	len = MIN(strlen(worktree->path_prefix), strlen(path));
 	if (strncmp(path, worktree->path_prefix, len) != 0)
 		return NULL;