Skip to content

Commit 16f2b6b

Browse files
phil-blaingitster
authored andcommitted
unpack-trees: remove outdated description for verify_clean_submodule
The function verify_clean_submodule() learned to verify if a submodule working tree is clean in a7bc845 (unpack-trees: check if we can perform the operation for submodules, 2017-03-14), but the commented description above it was not updated to reflect that, such that this description has been outdated since then. Since Git has now learned to optionnally recursively check out submodules during a superproject checkout, remove this outdated description. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8d48dd1 commit 16f2b6b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

unpack-trees.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,9 +1811,6 @@ static void invalidate_ce_path(const struct cache_entry *ce,
18111811
/*
18121812
* Check that checking out ce->sha1 in subdir ce->name is not
18131813
* going to overwrite any working files.
1814-
*
1815-
* Currently, git does not checkout subprojects during a superproject
1816-
* checkout, so it is not going to overwrite anything.
18171814
*/
18181815
static int verify_clean_submodule(const char *old_sha1,
18191816
const struct cache_entry *ce,

0 commit comments

Comments
 (0)