]> git.ipfire.org Git - thirdparty/git.git/commitdiff
unpack-trees: remove outdated description for verify_clean_submodule
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 17 Feb 2020 04:53:04 +0000 (04:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Feb 2020 23:27:28 +0000 (15:27 -0800)
The function verify_clean_submodule() learned to verify if a submodule
working tree is clean in a7bc845a9a (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>
unpack-trees.c

index 2399b6818be6ddb9a6f4103cec667b2e2a9c24d0..4ff9077c879c12d7a76c13f197233a98907d2494 100644 (file)
@@ -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,