[4/6] unpack-trees: remove outdated description for verify_clean_submodule
diff mbox series

Message ID bc7217f293a381226abdff89ba046814777a96a5.1581915186.git.gitgitgadget@gmail.com
State New
Headers show
Series
  • unpack-trees: fix '--recurse-submodules' when switching from no submodules to nested submodules
Related show

Commit Message

Elijah Newren via GitGitGadget Feb. 17, 2020, 4:53 a.m. UTC
From: Philippe Blain <levraiphilippeblain@gmail.com>

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>
---
 unpack-trees.c | 3 ---
 1 file changed, 3 deletions(-)

Patch
diff mbox series

diff --git a/unpack-trees.c b/unpack-trees.c
index da4d6d4ec01..37eca3ede8b 100644
--- a/unpack-trees.c
+++ b/unpack-trees.c
@@ -1815,9 +1815,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,