git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v5 12/16] merge-recursive: flush output buffer before printing error messages

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 26, 2016, 16:06 UTC
Message-ID
<349bdfacfffa11d06241655c9e0b62506e58758b.1469547160.git.johannes.schindelin@gmx.de>
In-Reply-To
<cover.1469547160.git.johannes.schindelin@gmx.de>

The data structure passed to the recursive merge machinery has a feature where the caller can ask for the output to be buffered into a strbuf, by setting the field 'buffer_output'.

Previously, we simply swallowed the buffered output when showing error messages. With this patch, we show the output first, and only then print the error message.

Currently, the only user of that buffering is merge_recursive() itself, to avoid the progress output to interfere.

In the next patches, we will introduce a new buffer_output mode that forces merge_recursive() to retain the output buffer for further processing by the caller. If the caller asked for that, we will then also write the error messages into the output buffer. This is necessary to give the caller more control not only how to react in case of errors but also control how/if to display the error messages.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
 merge-recursive.c | 116 ++++++++++++++++++++++++++++++++----------------------
 1 file changed, 68 insertions(+), 48 deletions(-)
diff --git a/merge-recursive.c b/merge-recursive.c
index bc59815..71a0aa0 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -23,6 +23,28 @@
 #include "dir.h"
 #include "submodule.h"
 
+static void flush_output(struct merge_options *o)
+{
+	if (o->obuf.len) {
+		fputs(o->obuf.buf, stdout);
+		strbuf_reset(&o->obuf);
+	}
+}
+
+static int err(struct merge_options *o, const char *err, ...)
+{
+	va_list params;
+
+	va_start(params, err);
+	flush_output(o);
+	strbuf_vaddf(&o->obuf, err, params);
+	error("%s", o->obuf.buf);
+	strbuf_reset(&o->obuf);
+	va_end(params);
+
+	return -1;
+}
+
 static struct tree *shift_tree_object(struct tree *one, struct tree *two,
 				      const char *subtree_shift)
 {
@@ -148,14 +170,6 @@ static int show(struct merge_options *o, int v)
 	return (!o->call_depth && o->verbosity >= v) || o->verbosity >= 5;
 }
 
-static void flush_output(struct merge_options *o)
-{
-	if (o->obuf.len) {
-		fputs(o->obuf.buf, stdout);
-		strbuf_reset(&o->obuf);
-	}
-}
-
 __attribute__((format (printf, 3, 4)))
 static void output(struct merge_options *o, int v, const char *fmt, ...)
 {
@@ -198,7 +212,8 @@ static void output_commit_title(struct merge_options *o, struct commit *commit)
 	}
 }
 
-static int add_cacheinfo(unsigned int mode, const struct object_id *oid,
+static int add_cacheinfo(struct merge_options *o,
+		unsigned int mode, const struct object_id *oid,
 		const char *path, int stage, int refresh, int options)
 {
 	struct cache_entry *ce;
@@ -206,7 +221,7 @@ static int add_cacheinfo(unsigned int mode, const struct object_id *oid,
 
 	ce = make_cache_entry(mode, oid ? oid->hash : null_sha1, path, stage, 0);
 	if (!ce)
-		return error(_("addinfo_cache failed for path '%s'"), path);
+		return err(o, _("addinfo_cache failed for path '%s'"), path);
 
 	ret = add_cache_entry(ce, options);
 	if (refresh) {
@@ -276,7 +291,7 @@ struct tree *write_tree_from_memory(struct merge_options *o)
 
 	if (!cache_tree_fully_valid(active_cache_tree) &&
 	    cache_tree_update(&the_index, 0) < 0) {
-		error(_("error building trees"));
+		err(o, _("error building trees"));
 		return NULL;
 	}
 
@@ -544,7 +559,8 @@ static struct string_list *get_renames(struct merge_options *o,
 	return renames;
 }
 
-static int update_stages(const char *path, const struct diff_filespec *o,
+static int update_stages(struct merge_options *opt, const char *path,
+			 const struct diff_filespec *o,
 			 const struct diff_filespec *a,
 			 const struct diff_filespec *b)
 {
@@ -563,13 +579,13 @@ static int update_stages(const char *path, const struct diff_filespec *o,
 		if (remove_file_from_cache(path))
 			return -1;
 	if (o)
-		if (add_cacheinfo(o->mode, &o->oid, path, 1, 0, options))
+		if (add_cacheinfo(opt, o->mode, &o->oid, path, 1, 0, options))
 			return -1;
 	if (a)
-		if (add_cacheinfo(a->mode, &a->oid, path, 2, 0, options))
+		if (add_cacheinfo(opt, a->mode, &a->oid, path, 2, 0, options))
 			return -1;
 	if (b)
-		if (add_cacheinfo(b->mode, &b->oid, path, 3, 0, options))
+		if (add_cacheinfo(opt, b->mode, &b->oid, path, 3, 0, options))
 			return -1;
 	return 0;
 }
@@ -720,8 +736,8 @@ static int make_room_for_path(struct merge_options *o, const char *path)
 	if (status) {
 		if (status == SCLD_EXISTS)
 			/* something else exists */
-			return error(msg, path, _(": perhaps a D/F conflict?"));
-		return error(msg, path, "");
+			return err(o, msg, path, _(": perhaps a D/F conflict?"));
+		return err(o, msg, path, "");
 	}
 
 	/*
@@ -729,7 +745,7 @@ static int make_room_for_path(struct merge_options *o, const char *path)
 	 * tracking it.
 	 */
 	if (would_lose_untracked(path))
-		return error(_("refusing to lose untracked file at '%s'"),
+		return err(o, _("refusing to lose untracked file at '%s'"),
 			     path);
 
 	/* Successful unlink is good.. */
@@ -739,7 +755,7 @@ static int make_room_for_path(struct merge_options *o, const char *path)
 	if (errno == ENOENT)
 		return 0;
 	/* .. but not some other error (who really cares what?) */
-	return error(msg, path, _(": perhaps a D/F conflict?"));
+	return err(o, msg, path, _(": perhaps a D/F conflict?"));
 }
 
 static int update_file_flags(struct merge_options *o,
@@ -771,9 +787,9 @@ static int update_file_flags(struct merge_options *o,
 
 		buf = read_sha1_file(oid->hash, &type, &size);
 		if (!buf)
-			return error(_("cannot read object %s '%s'"), oid_to_hex(oid), path);
+			return err(o, _("cannot read object %s '%s'"), oid_to_hex(oid), path);
 		if (type != OBJ_BLOB) {
-			ret = error(_("blob expected for %s '%s'"), oid_to_hex(oid), path);
+			ret = err(o, _("blob expected for %s '%s'"), oid_to_hex(oid), path);
 			goto free_buf;
 		}
 		if (S_ISREG(mode)) {
@@ -797,8 +813,8 @@ static int update_file_flags(struct merge_options *o,
 				mode = 0666;
 			fd = open(path, O_WRONLY | O_TRUNC | O_CREAT, mode);
 			if (fd < 0) {
-				ret = error_errno(_("failed to open '%s'"),
-						  path);
+				ret = err(o, _("failed to open '%s': %s"),
+					  path, strerror(errno));
 				goto free_buf;
 			}
 			write_in_full(fd, buf, size);
@@ -808,17 +824,19 @@ static int update_file_flags(struct merge_options *o,
 			safe_create_leading_directories_const(path);
 			unlink(path);
 			if (symlink(lnk, path))
-				ret = error_errno(_("failed to symlink '%s'"), path);
+				ret = err(o, _("failed to symlink '%s': %s"),
+					path, strerror(errno));
 			free(lnk);
 		} else
-			ret = error(_("do not know what to do with %06o %s '%s'"),
-				    mode, oid_to_hex(oid), path);
+			ret = err(o,
+				  _("do not know what to do with %06o %s '%s'"),
+				  mode, oid_to_hex(oid), path);
  free_buf:
 		free(buf);
 	}
  update_index:
 	if (!ret && update_cache)
-		add_cacheinfo(mode, oid, path, 0, update_wd, ADD_CACHE_OK_TO_ADD);
+		add_cacheinfo(o, mode, oid, path, 0, update_wd, ADD_CACHE_OK_TO_ADD);
 	return ret;
 }
 
@@ -951,12 +969,12 @@ static int merge_file_1(struct merge_options *o,
 						  branch1, branch2);
 
 			if ((merge_status < 0) || !result_buf.ptr)
-				ret = error(_("Failed to execute internal merge"));
+				ret = err(o, _("Failed to execute internal merge"));
 
 			if (!ret && write_sha1_file(result_buf.ptr, result_buf.size,
 						    blob_type, result->oid.hash))
-				ret = error(_("Unable to add %s to database"),
-					    a->path);
+				ret = err(o, _("Unable to add %s to database"),
+					  a->path);
 
 			free(result_buf.ptr);
 			if (ret)
@@ -1122,7 +1140,7 @@ static int conflict_rename_delete(struct merge_options *o,
 	if (o->call_depth)
 		return remove_file_from_cache(dest->path);
 	else
-		return update_stages(dest->path, NULL,
+		return update_stages(o, dest->path, NULL,
 				     rename_branch == o->branch1 ? dest : NULL,
 				     rename_branch == o->branch1 ? NULL : dest);
 }
@@ -1180,9 +1198,9 @@ static int handle_file(struct merge_options *o,
 	if ((ret = update_file(o, 0, &rename->oid, rename->mode, dst_name)))
 		; /* fall through, do allow dst_name to be released */
 	else if (stage == 2)
-		ret = update_stages(rename->path, NULL, rename, add);
+		ret = update_stages(o, rename->path, NULL, rename, add);
 	else
-		ret = update_stages(rename->path, NULL, add, rename);
+		ret = update_stages(o, rename->path, NULL, add, rename);
 
 	if (dst_name != rename->path)
 		free(dst_name);
@@ -1575,23 +1593,25 @@ static struct object_id *stage_oid(const struct object_id *oid, unsigned mode)
 	return (is_null_oid(oid) || mode == 0) ? NULL: (struct object_id *)oid;
 }
 
-static int read_oid_strbuf(const struct object_id *oid, struct strbuf *dst)
+static int read_oid_strbuf(struct merge_options *o,
+	const struct object_id *oid, struct strbuf *dst)
 {
 	void *buf;
 	enum object_type type;
 	unsigned long size;
 	buf = read_sha1_file(oid->hash, &type, &size);
 	if (!buf)
-		return error(_("cannot read object %s"), oid_to_hex(oid));
+		return err(o, _("cannot read object %s"), oid_to_hex(oid));
 	if (type != OBJ_BLOB) {
 		free(buf);
-		return error(_("object %s is not a blob"), oid_to_hex(oid));
+		return err(o, _("object %s is not a blob"), oid_to_hex(oid));
 	}
 	strbuf_attach(dst, buf, size, size + 1);
 	return 0;
 }
 
-static int blob_unchanged(const struct object_id *o_oid,
+static int blob_unchanged(struct merge_options *opt,
+			  const struct object_id *o_oid,
 			  unsigned o_mode,
 			  const struct object_id *a_oid,
 			  unsigned a_mode,
@@ -1609,7 +1629,7 @@ static int blob_unchanged(const struct object_id *o_oid,
 		return 0;
 
 	assert(o_oid && a_oid);
-	if (read_oid_strbuf(o_oid, &o) || read_oid_strbuf(a_oid, &a))
+	if (read_oid_strbuf(opt, o_oid, &o) || read_oid_strbuf(opt, a_oid, &a))
 		goto error_return;
 	/*
 	 * Note: binary | is used so that both renormalizations are
@@ -1698,7 +1718,7 @@ static int merge_content(struct merge_options *o,
 		 */
 		path_renamed_outside_HEAD = !path2 || !strcmp(path, path2);
 		if (!path_renamed_outside_HEAD) {
-			add_cacheinfo(mfi.mode, &mfi.oid, path,
+			add_cacheinfo(o, mfi.mode, &mfi.oid, path,
 				      0, (!o->call_depth), 0);
 			return mfi.clean;
 		}
@@ -1711,7 +1731,7 @@ static int merge_content(struct merge_options *o,
 		output(o, 1, _("CONFLICT (%s): Merge conflict in %s"),
 				reason, path);
 		if (rename_conflict_info && !df_conflict_remains)
-			if (update_stages(path, &one, &a, &b))
+			if (update_stages(o, path, &one, &a, &b))
 				return -1;
 	}
 
@@ -1721,7 +1741,7 @@ static int merge_content(struct merge_options *o,
 			remove_file_from_cache(path);
 		} else {
 			if (!mfi.clean) {
-				if (update_stages(path, &one, &a, &b))
+				if (update_stages(o, path, &one, &a, &b))
 					return -1;
 			} else {
 				int file_from_stage2 = was_tracked(path);
@@ -1729,7 +1749,7 @@ static int merge_content(struct merge_options *o,
 				oidcpy(&merged.oid, &mfi.oid);
 				merged.mode = mfi.mode;
 
-				if (update_stages(path, NULL,
+				if (update_stages(o, path, NULL,
 						  file_from_stage2 ? &merged : NULL,
 						  file_from_stage2 ? NULL : &merged))
 					return -1;
@@ -1797,8 +1817,8 @@ static int process_entry(struct merge_options *o,
 	} else if (o_oid && (!a_oid || !b_oid)) {
 		/* Case A: Deleted in one */
 		if ((!a_oid && !b_oid) ||
-		    (!b_oid && blob_unchanged(o_oid, o_mode, a_oid, a_mode, normalize, path)) ||
-		    (!a_oid && blob_unchanged(o_oid, o_mode, b_oid, b_mode, normalize, path))) {
+		    (!b_oid && blob_unchanged(o, o_oid, o_mode, a_oid, a_mode, normalize, path)) ||
+		    (!a_oid && blob_unchanged(o, o_oid, o_mode, b_oid, b_mode, normalize, path))) {
 			/* Deleted in both or deleted in one and
 			 * unchanged in the other */
 			if (a_oid)
@@ -1894,7 +1914,7 @@ int merge_trees(struct merge_options *o,
 
 	if (code != 0) {
 		if (show(o, 4) || o->call_depth)
-			error(_("merging of trees %s and %s failed"),
+			err(o, _("merging of trees %s and %s failed"),
 			    oid_to_hex(&head->object.oid),
 			    oid_to_hex(&merge->object.oid));
 		return -1;
@@ -2029,7 +2049,7 @@ int merge_recursive(struct merge_options *o,
 		o->call_depth--;
 
 		if (!merged_common_ancestors)
-			return error(_("merge returned no commit"));
+			return err(o, _("merge returned no commit"));
 	}
 
 	discard_cache();
@@ -2088,7 +2108,7 @@ int merge_recursive_generic(struct merge_options *o,
 		for (i = 0; i < num_base_list; ++i) {
 			struct commit *base;
 			if (!(base = get_ref(base_list[i], oid_to_hex(base_list[i]))))
-				return error(_("Could not parse object '%s'"),
+				return err(o, _("Could not parse object '%s'"),
 					oid_to_hex(base_list[i]));
 			commit_list_insert(base, &ca);
 		}
@@ -2102,7 +2122,7 @@ int merge_recursive_generic(struct merge_options *o,
 
 	if (active_cache_changed &&
 	    write_locked_index(&the_index, lock, COMMIT_LOCK))
-		return error(_("Unable to write index."));
+		return err(o, _("Unable to write index."));
 
 	return clean ? 0 : 1;
 }
-- 
2.9.0.281.g286a8d9
Previous: Johannes SchindelinNext: Junio C Hamano
Message 147 of 262 in “Use merge_recursive() directly in the builtin am”
  1. 0/9 Use merge_recursive() directly in the builtin amJohannes Schindelin, Jun 29, 2016
  2. 1/9 Report bugs consistentlyJohannes Schindelin, Jun 29, 2016
  3. Johannes SchindelinJun 29, 2016
  4. Eric SunshineJun 29, 2016
  5. Johannes SchindelinJun 30, 2016
  6. Junio C HamanoJun 29, 2016
  7. Johannes SchindelinJun 30, 2016
  8. Jeff KingJun 30, 2016
  9. Johannes SchindelinJul 1, 2016
  10. Jeff KingJul 1, 2016
  11. Johannes SixtJun 30, 2016
  12. Johannes SchindelinJun 30, 2016
  13. Duy NguyenJul 2, 2016
  14. Johannes SchindelinJul 2, 2016
  15. Duy NguyenJul 2, 2016
  16. Johannes SchindelinJul 5, 2016
  17. 2/9 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Jun 29, 2016
  18. Junio C HamanoJun 29, 2016
  19. Johannes SchindelinJul 1, 2016
  20. Junio C HamanoJul 1, 2016
  21. Johannes SchindelinJul 2, 2016
  22. Junio C HamanoJul 6, 2016
  23. Johannes SchindelinJul 7, 2016
  24. 4/9 merge_recursive: abort properly upon errorsJohannes Schindelin, Jun 29, 2016
  25. Junio C HamanoJun 29, 2016
  26. Johannes SchindelinJul 1, 2016
  27. Junio C HamanoJul 1, 2016
  28. Johannes SchindelinJul 2, 2016
  29. 3/9 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Jun 29, 2016
  30. Junio C HamanoJun 29, 2016
  31. Johannes SchindelinJul 1, 2016
  32. Junio C HamanoJul 1, 2016
  33. Johannes SchindelinJul 2, 2016
  34. 6/9 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Jun 29, 2016
  35. 7/9 merge-recursive: handle return values indicating errorsJohannes Schindelin, Jun 29, 2016
  36. Junio C HamanoJun 29, 2016
  37. Johannes SchindelinJul 1, 2016
  38. 5/9 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Jun 29, 2016
  39. Junio C HamanoJun 29, 2016
  40. Johannes SchindelinJul 1, 2016
  41. Eric WongJul 1, 2016
  42. 8/9 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Jun 29, 2016
  43. Junio C HamanoJun 29, 2016
  44. Johannes SchindelinJul 1, 2016
  45. 9/9 am: make a direct call to merge_recursiveJohannes Schindelin, Jun 29, 2016
  46. Junio C HamanoJun 29, 2016
  47. Johannes SchindelinJun 30, 2016
  48. Junio C HamanoJul 1, 2016
  49. Junio C HamanoJun 29, 2016
  50. Johannes SchindelinJul 1, 2016
  51. 00/17 Use merge_recursive() directly in the builtin amJohannes Schindelin, Jul 5, 2016
  52. 01/17 Verify that `git pull --rebase` shows the helpful advice when failingJohannes Schindelin, Jul 5, 2016
  53. 02/17 Report bugs consistentlyJohannes Schindelin, Jul 5, 2016
  54. Jakub NarębskiJul 5, 2016
  55. Johannes SchindelinJul 5, 2016
  56. Duy NguyenJul 6, 2016
  57. Johannes SchindelinJul 7, 2016
  58. 04/17 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Jul 5, 2016
  59. 03/17 Avoid translating bug messagesJohannes Schindelin, Jul 5, 2016
  60. 06/17 merge_recursive: abort properly upon errorsJohannes Schindelin, Jul 5, 2016
  61. 07/17 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Jul 5, 2016
  62. 05/17 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Jul 5, 2016
  63. 09/17 merge-recursive: handle return values indicating errorsJohannes Schindelin, Jul 5, 2016
  64. 08/17 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Jul 5, 2016
  65. 10/17 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Jul 5, 2016
  66. 12/17 am -3: use merge_recursive() directly againJohannes Schindelin, Jul 5, 2016
  67. 11/17 am: counteract gender biasJohannes Schindelin, Jul 5, 2016
  68. Junio C HamanoJul 6, 2016
  69. Johannes SchindelinJul 7, 2016
  70. Junio C HamanoJul 7, 2016
  71. Johannes SchindelinJul 7, 2016
  72. Junio C HamanoJul 7, 2016
  73. 13/17 merge-recursive: flush output buffer before printing error messagesJohannes Schindelin, Jul 5, 2016
  74. 14/17 merge-recursive: write the commit title in one goJohannes Schindelin, Jul 5, 2016
  75. 16/17 Ensure that the output buffer is released after calling merge_trees()Johannes Schindelin, Jul 5, 2016
  76. 15/17 merge-recursive: offer an option to retain the output in 'obuf'Johannes Schindelin, Jul 5, 2016
  77. 17/17 merge-recursive: flush output buffer even when erroring outJohannes Schindelin, Jul 5, 2016
  78. Junio C HamanoJul 6, 2016
  79. Johannes SchindelinJul 7, 2016
  80. 00/16 Use merge_recursive() directly in the builtin amJohannes Schindelin, Jul 7, 2016
  81. 02/16 Report bugs consistentlyJohannes Schindelin, Jul 7, 2016
  82. 03/16 Avoid translating bug messagesJohannes Schindelin, Jul 7, 2016
  83. 05/16 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Jul 7, 2016
  84. 06/16 merge_recursive: abort properly upon errorsJohannes Schindelin, Jul 7, 2016
  85. 04/16 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Jul 7, 2016
  86. 01/16 Verify that `git pull --rebase` shows the helpful advice when failingJohannes Schindelin, Jul 7, 2016
  87. 07/16 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Jul 7, 2016
  88. 08/16 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Jul 7, 2016
  89. 09/16 merge-recursive: handle return values indicating errorsJohannes Schindelin, Jul 7, 2016
  90. 11/16 am -3: use merge_recursive() directly againJohannes Schindelin, Jul 7, 2016
  91. 10/16 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Jul 7, 2016
  92. 12/16 merge-recursive: flush output buffer before printing error messagesJohannes Schindelin, Jul 7, 2016
  93. 14/16 merge-recursive: offer an option to retain the output in 'obuf'Johannes Schindelin, Jul 7, 2016
  94. 13/16 merge-recursive: write the commit title in one goJohannes Schindelin, Jul 7, 2016
  95. 15/16 Ensure that the output buffer is released after calling merge_trees()Johannes Schindelin, Jul 7, 2016
  96. 16/16 merge-recursive: flush output buffer even when erroring outJohannes Schindelin, Jul 7, 2016
  97. Junio C HamanoJul 12, 2016
  98. Johannes SchindelinJul 14, 2016
  99. Junio C HamanoJul 14, 2016
  100. Junio C HamanoJul 19, 2016
  101. Johannes SchindelinJul 19, 2016
  102. Johannes SchindelinJul 19, 2016
  103. Junio C HamanoJul 19, 2016
  104. 00/16 Use merge_recursive() directly in the builtin amJohannes Schindelin, Jul 22, 2016
  105. 01/16 Verify that `git pull --rebase` shows the helpful advice when failingJohannes Schindelin, Jul 22, 2016
  106. Junio C HamanoJul 25, 2016
  107. Johannes SchindelinJul 26, 2016
  108. 02/16 Report bugs consistentlyJohannes Schindelin, Jul 22, 2016
  109. Junio C HamanoJul 25, 2016
  110. Jeff KingJul 25, 2016
  111. Junio C HamanoJul 25, 2016
  112. Johannes SchindelinJul 26, 2016
  113. 03/16 Avoid translating bug messagesJohannes Schindelin, Jul 22, 2016
  114. 04/16 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Jul 22, 2016
  115. 05/16 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Jul 22, 2016
  116. 06/16 merge_recursive: abort properly upon errorsJohannes Schindelin, Jul 22, 2016
  117. Junio C HamanoJul 25, 2016
  118. Johannes SchindelinJul 26, 2016
  119. 07/16 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Jul 22, 2016
  120. 08/16 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Jul 22, 2016
  121. 09/16 merge-recursive: handle return values indicating errorsJohannes Schindelin, Jul 22, 2016
  122. 10/16 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Jul 22, 2016
  123. 11/16 am -3: use merge_recursive() directly againJohannes Schindelin, Jul 22, 2016
  124. Junio C HamanoJul 25, 2016
  125. Johannes SchindelinJul 26, 2016
  126. Junio C HamanoJul 26, 2016
  127. 12/16 merge-recursive: flush output buffer before printing error messagesJohannes Schindelin, Jul 22, 2016
  128. 14/16 merge-recursive: offer an option to retain the output in 'obuf'Johannes Schindelin, Jul 22, 2016
  129. 15/16 Ensure that the output buffer is released after calling merge_trees()Johannes Schindelin, Jul 22, 2016
  130. 13/16 merge-recursive: write the commit title in one goJohannes Schindelin, Jul 22, 2016
  131. 16/16 merge-recursive: flush output buffer even when erroring outJohannes Schindelin, Jul 22, 2016
  132. 00/16 Use merge_recursive() directly in the builtin amJohannes Schindelin, Jul 26, 2016
  133. 01/16 t5520: verify that `pull --rebase` shows the helpful advice when failingJohannes Schindelin, Jul 26, 2016
  134. 02/16 Report bugs consistentlyJohannes Schindelin, Jul 26, 2016
  135. 03/16 Avoid translating bug messagesJohannes Schindelin, Jul 26, 2016
  136. 04/16 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Jul 26, 2016
  137. 05/16 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Jul 26, 2016
  138. 06/16 merge_recursive: abort properly upon errorsJohannes Schindelin, Jul 26, 2016
  139. 07/16 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Jul 26, 2016
  140. 08/16 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Jul 26, 2016
  141. 09/16 merge-recursive: handle return values indicating errorsJohannes Schindelin, Jul 26, 2016
  142. 10/16 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Jul 26, 2016
  143. 13/16 merge-recursive: write the commit title in one goJohannes Schindelin, Jul 26, 2016
  144. Junio C HamanoJul 27, 2016
  145. Johannes SchindelinAug 1, 2016
  146. 11/16 am -3: use merge_recursive() directly againJohannes Schindelin, Jul 26, 2016
  147. 12/16 merge-recursive: flush output buffer before printing error messagesJohannes Schindelin, Jul 26, 2016
  148. Junio C HamanoJul 27, 2016
  149. Junio C HamanoJul 27, 2016
  150. Johannes SchindelinAug 1, 2016
  151. 14/16 merge-recursive: offer an option to retain the output in 'obuf'Johannes Schindelin, Jul 26, 2016
  152. Junio C HamanoJul 27, 2016
  153. Junio C HamanoJul 28, 2016
  154. Johannes SchindelinAug 1, 2016
  155. Junio C HamanoAug 1, 2016
  156. Johannes SchindelinAug 2, 2016
  157. Junio C HamanoAug 2, 2016
  158. Johannes SchindelinAug 1, 2016
  159. 15/16 Ensure that the output buffer is released after calling merge_trees()Johannes Schindelin, Jul 26, 2016
  160. Junio C HamanoJul 27, 2016
  161. Johannes SchindelinAug 1, 2016
  162. 16/16 merge-recursive: flush output buffer even when erroring outJohannes Schindelin, Jul 26, 2016
  163. Junio C HamanoJul 27, 2016
  164. Johannes SchindelinAug 1, 2016
  165. Junio C HamanoAug 1, 2016
  166. 00/16 Use merge_recursive() directly in the builtin amJohannes Schindelin, Aug 1, 2016
  167. 01/16 t5520: verify that `pull --rebase` shows the helpful advice when failingJohannes Schindelin, Aug 1, 2016
  168. 02/16 Report bugs consistentlyJohannes Schindelin, Aug 1, 2016
  169. 05/16 Prepare the builtins for a libified merge_recursive()Johannes Schindelin, Aug 1, 2016
  170. Junio C HamanoAug 1, 2016
  171. Johannes SchindelinAug 2, 2016
  172. 04/16 merge-recursive: clarify code in was_tracked()Johannes Schindelin, Aug 1, 2016
  173. 03/16 Avoid translating bug messagesJohannes Schindelin, Aug 1, 2016
  174. 11/16 am -3: use merge_recursive() directly againJohannes Schindelin, Aug 1, 2016
  175. 09/16 merge-recursive: handle return values indicating errorsJohannes Schindelin, Aug 1, 2016
  176. 14/16 merge-recursive: offer an option to retain the output in 'obuf'Johannes Schindelin, Aug 1, 2016
  177. 10/16 merge-recursive: switch to returning errors instead of dyingJohannes Schindelin, Aug 1, 2016
  178. 12/16 merge-recursive: flush output buffer before printing error messagesJohannes Schindelin, Aug 1, 2016
  179. 07/16 merge-recursive: avoid returning a wholesale structJohannes Schindelin, Aug 1, 2016
  180. Junio C HamanoAug 4, 2016
  181. 15/16 Ensure that the output buffer is released after calling merge_trees()Johannes Schindelin, Aug 1, 2016
  182. Junio C HamanoAug 4, 2016
  183. 08/16 merge-recursive: allow write_tree_from_memory() to error outJohannes Schindelin, Aug 1, 2016
  184. Junio C HamanoAug 4, 2016
  185. 06/16 merge_recursive: abort properly upon errorsJohannes Schindelin, Aug 1, 2016
  186. Junio C HamanoAug 1, 2016
  187. Johannes SchindelinAug 2, 2016
  188. Junio C HamanoAug 2, 2016
  189. patch submission process, was Re: [PATCH v6 06/16] merge_recursive: abort properly upon errorsJohannes Schindelin, Aug 3, 2016
  190. Junio C HamanoAug 3, 2016
  191. Jeff KingAug 3, 2016
  192. Junio C HamanoAug 3, 2016
  193. Jeff KingAug 3, 2016
  194. Johannes SchindelinAug 4, 2016
  195. Jeff KingAug 4, 2016
  196. Junio C HamanoAug 4, 2016
  197. Jeff KingAug 5, 2016
  198. Johannes SchindelinAug 5, 2016
  199. Johannes SchindelinAug 3, 2016
  200. Stefan BellerAug 3, 2016
  201. Johannes SchindelinAug 4, 2016
  202. Stefan BellerAug 4, 2016
  203. Eric WongAug 4, 2016
  204. Johannes SchindelinAug 5, 2016
  205. Eric WongAug 5, 2016
  206. Johannes SchindelinAug 5, 2016
  207. Stefan BellerAug 5, 2016
  208. Josh TriplettAug 5, 2016
  209. Eric WongAug 5, 2016
  210. Johannes SchindelinAug 6, 2016
  211. Junio C HamanoAug 6, 2016
  212. Eric WongAug 6, 2016
  213. Johannes SchindelinAug 7, 2016
  214. Junio C HamanoAug 8, 2016
  215. Johannes SchindelinAug 9, 2016
  216. Lars SchneiderAug 7, 2016
  217. Junio C HamanoAug 8, 2016
  218. Johannes SchindelinAug 9, 2016
  219. Junio C HamanoAug 9, 2016
  220. Eric WongAug 5, 2016
  221. Johannes SchindelinAug 6, 2016
  222. Richard IpsumAug 5, 2016
  223. Johannes SchindelinAug 5, 2016
  224. Richard IpsumAug 6, 2016
  225. Michael HaggertyAug 8, 2016
  226. Junio C HamanoAug 8, 2016
  227. Michael HaggertyAug 8, 2016
  228. Michael J GruberAug 9, 2016
  229. Jeff KingAug 9, 2016
  230. Josh TriplettAug 10, 2016
  231. Jeff KingAug 9, 2016
  232. Junio C HamanoAug 9, 2016
  233. Jeff KingAug 9, 2016
  234. Junio C HamanoAug 9, 2016
  235. Duy NguyenAug 9, 2016
  236. Stefan BellerAug 9, 2016
  237. Jeff KingAug 9, 2016
  238. Jeff KingAug 9, 2016
  239. Duy NguyenAug 9, 2016
  240. Duy NguyenAug 9, 2016
  241. Duy NguyenAug 9, 2016
  242. Richard IpsumAug 9, 2016
  243. Jeff KingAug 9, 2016
  244. Michael HaggertyAug 9, 2016
  245. Johannes SchindelinAug 9, 2016
  246. Eric WongAug 9, 2016
  247. Josh TriplettAug 10, 2016
  248. Eric WongAug 10, 2016
  249. Jakub NarębskiAug 10, 2016
  250. Josh TriplettAug 10, 2016
  251. Junio C HamanoAug 10, 2016
  252. Duy NguyenAug 5, 2016
  253. Johannes SchindelinAug 5, 2016
  254. Philip OakleyAug 5, 2016
  255. Johannes SchindelinAug 6, 2016
  256. Philip OakleyAug 6, 2016
  257. Junio C HamanoAug 2, 2016
  258. 13/16 merge-recursive: write the commit title in one goJohannes Schindelin, Aug 1, 2016
  259. 16/16 merge-recursive: flush output buffer even when erroring outJohannes Schindelin, Aug 1, 2016
  260. Junio C HamanoAug 4, 2016
  261. Johannes SchindelinAug 5, 2016
  262. Junio C HamanoAug 6, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.