Skip to content

Commit

Permalink
unpack-trees: remove outdated description for verify_clean_submodule
Browse files Browse the repository at this point in the history
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 <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
phil-blain authored and gitster committed Feb 19, 2020
1 parent 8d48dd1 commit 16f2b6b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions unpack-trees.c
Expand Up @@ -1811,9 +1811,6 @@ static void invalidate_ce_path(const struct cache_entry *ce,
/*
* Check that checking out ce->sha1 in subdir ce->name is not
* going to overwrite any working files.
*
* Currently, git does not checkout subprojects during a superproject
* checkout, so it is not going to overwrite anything.
*/
static int verify_clean_submodule(const char *old_sha1,
const struct cache_entry *ce,
Expand Down

0 comments on commit 16f2b6b

Please sign in to comment.