]> Savannah Git Hosting - gnulib.git/commitdiff
git-merge-changelog: Improve conflict markers.
authorAndreas Schwab <schwab@suse.de>
Mon, 24 Jun 2024 10:38:39 +0000 (12:38 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 24 Jun 2024 11:10:34 +0000 (13:10 +0200)
* lib/git-merge-changelog.c (conflict_write): Add a space after <<<<<<<
and >>>>>>>.

Copyright-paperwork-exempt: Yes

ChangeLog
lib/git-merge-changelog.c

index 5972064bdb84f7379d8377e92c9732ccb3ee9dc9..5cff39f7c6fe36e257e8439cc802ad69a8771030 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-06-24  Andreas Schwab  <schwab@suse.de>
+
+       git-merge-changelog: Improve conflict markers.
+       * lib/git-merge-changelog.c (conflict_write): Add a space after <<<<<<<
+       and >>>>>>>.
+
 2024-06-23  Collin Funk  <collin.funk1@gmail.com>
 
        test-framework-sh: Fix typo in function invocation (regression 2024-06-11).
index c701d299420130019d89c366deddbb1cc616d25d..b30045e2aa27d45b65d192fe167819ee711ba77d 100644 (file)
@@ -964,13 +964,13 @@ conflict_write (FILE *fp, struct conflict *c)
   /* Use the same syntax as git's default merge driver.
      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);
+  fputs ("<<<<<<< \n", fp);
   for (i = 0; i < c->num_old_entries; i++)
     entry_write (fp, c->old_entries[i]);
   fputs ("=======\n", fp);
   for (i = 0; i < c->num_modified_entries; i++)
     entry_write (fp, c->modified_entries[i]);
-  fputs (">>>>>>>\n", fp);
+  fputs (">>>>>>> \n", fp);
 }
 
 /* Long options.  */