check_replace_refs: fix outdated comment
authorJeff King <peff@peff.net>
Wed, 18 Jul 2018 20:44:49 +0000 (16:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Jul 2018 22:45:06 +0000 (15:45 -0700)
Commit afc711b8e1 (rename read_replace_refs to
check_replace_refs, 2014-02-18) added a comment mentioning
that check_replace_refs is set in two ways:

- from user intent via --no-replace-objects, etc

- after seeing there are no replace refs to respect

Since c3c36d7de2 (replace-object: check_replace_refs is safe
in multi repo environment, 2018-04-11) the second is no
longer true. Let's drop that part of the comment.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
diff --git a/cache.h b/cache.h
index 8b447652a7e94ad31fd28134e0f548baa37265db..7b09b09cb02a18a42a1be3bd044c6ca4db341db5 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -804,9 +804,7 @@ void reset_shared_repository(void);
  * Do replace refs need to be checked this run?  This variable is
  * initialized to true unless --no-replace-object is used or
  * $GIT_NO_REPLACE_OBJECTS is set, but is set to false by some
  * Do replace refs need to be checked this run?  This variable is
  * initialized to true unless --no-replace-object is used or
  * $GIT_NO_REPLACE_OBJECTS is set, but is set to false by some
- * commands that do not want replace references to be active.  As an
- * optimization it is also set to false if replace references have
- * been sought but there were none.
+ * commands that do not want replace references to be active.
  */
 extern int check_replace_refs;
 extern char *git_replace_ref_base;
  */
 extern int check_replace_refs;
 extern char *git_replace_ref_base;