git-merge-changelog: Improve last commit.
authorBruno Haible <bruno@clisp.org>
Mon, 24 Jun 2024 11:11:31 +0000 (13:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Jun 2024 11:11:31 +0000 (13:11 +0200)
* lib/git-merge-changelog.c (conflict_write): Add comments.

ChangeLog
lib/git-merge-changelog.c

index 5cff39f7c6fe36e257e8439cc802ad69a8771030..9a702d4af343b68a792fe71ad33b6d9766854018 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-24  Bruno Haible  <bruno@clisp.org>
+
+       git-merge-changelog: Improve last commit.
+       * lib/git-merge-changelog.c (conflict_write): Add comments.
+
 2024-06-24  Andreas Schwab  <schwab@suse.de>
 
        git-merge-changelog: Improve conflict markers.
index b30045e2aa27d45b65d192fe167819ee711ba77d..3cffe1fd2f2289370ab138dbbf1a0ff1a6f61834 100644 (file)
@@ -962,6 +962,9 @@ conflict_write (FILE *fp, struct conflict *c)
   idx_t i;
 
   /* Use the same syntax as git's default merge driver.
+     The spaces after <<<<<<< and >>>>>>> are for compatibility with
+     git/rerere.c, function 'is_cmarker'.  Usually they would be followed by
+     branch or version names, but this info is not available to us here.
      Don't indent the contents of the entries (with things like ">" or "-"),
      otherwise the user needs more textual editing to resolve the conflict.  */
   fputs ("<<<<<<< \n", fp);