]> git.ipfire.org Git - thirdparty/git.git/commitdiff
merge-ort: loosen commented requirements
authorElijah Newren <newren@gmail.com>
Wed, 19 Jun 2024 03:00:17 +0000 (03:00 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2024 17:35:25 +0000 (10:35 -0700)
The comment above type_short_descriptions claimed that the order had to
match what was found in the conflict_info_and_types enum.  Since
type_short_descriptions uses designated initializers, the order should
not actually matter; I am guessing that positional initializers may have
been under consideration when that comment was added, but the comment
was not updated when designated initializers were chosen.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-ort.c

index d187c966c6afc12b49256b805a3538db4454ee53..d0b13463283c3eee603db1747150e9fe46bbefb0 100644 (file)
@@ -553,7 +553,7 @@ enum conflict_and_info_types {
  * Short description of conflict type, relied upon by external tools.
  *
  * We can add more entries, but DO NOT change any of these strings.  Also,
- * Order MUST match conflict_info_and_types.
+ * please ensure the order matches what is used in conflict_info_and_types.
  */
 static const char *type_short_descriptions[] = {
        /*** "Simple" conflicts and informational messages ***/