@@ -660,17 +660,21 @@ int cmd_rev_list(int argc,
660
660
*
661
661
* Let "--missing" to conditionally set fetch_if_missing.
662
662
*/
663
+
663
664
/*
664
- * NEEDSWORK: These loops that attempt to find presence of
665
- * options without understanding that the options they are
666
- * skipping are broken (e.g., it would not know "--grep
665
+ * NEEDSWORK: The next loop is utterly broken. It tries to
666
+ * notice an option is used, but without understanding if each
667
+ * option takes an argument, which fundamentally would not
668
+ * work. It would not know "--grep
667
669
* --exclude-promisor-objects" is not triggering
668
- * "--exclude-promisor-objects" option). We really need
669
- * setup_revisions() to have a mechanism to allow and disallow
670
- * some sets of options for different commands (like rev-list,
671
- * replay, etc). Such a mechanism should do an early parsing
672
- * of options and be able to manage the `--missing=...` and
673
- * `--exclude-promisor-objects` options below.
670
+ * "--exclude-promisor-objects" option, for example.
671
+ *
672
+ * We really need setup_revisions() to have a mechanism to
673
+ * allow and disallow some sets of options for different
674
+ * commands (like rev-list, replay, etc). Such a mechanism
675
+ * should do an early parsing of options and be able to manage
676
+ * the `--missing=...` and `--exclude-promisor-objects`
677
+ * options below.
674
678
*/
675
679
for (i = 1 ; i < argc ; i ++ ) {
676
680
const char * arg = argv [i ];
0 commit comments