log: clarify comment about reflog cycles
[gitweb.git] / builtin / log.c
index 998437b23dcb32a45e4d722d695c86d3cc82b4bc..cf303b2c06d24778d70b65427db1e23b5dfd9dcf 100644 (file)
@@ -5,6 +5,7 @@
  *              2006 Junio Hamano
  */
 #include "cache.h"
+#include "config.h"
 #include "refs.h"
 #include "color.h"
 #include "commit.h"
@@ -371,7 +372,10 @@ static int cmd_log_walk(struct rev_info *rev)
                         */
                        rev->max_count++;
                if (!rev->reflog_info) {
-                       /* we allow cycles in reflog ancestry */
+                       /*
+                        * We may show a given commit multiple times when
+                        * walking the reflogs.
+                        */
                        free_commit_buffer(commit);
                }
                free_commit_list(commit->parents);