Re: [PATCH] Teach fmt-patch to write individual files.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Thursday, May 4, 2006 - 5:56 pm

Hi,

On Thu, 4 May 2006, Junio C Hamano wrote:


Right.


How about this?

-- snip --
diff --git a/log-tree.c b/log-tree.c
index d92abaf..6379d43 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -86,7 +86,7 @@ int log_tree_diff_flush(struct rev_info 
 	}
 
 	if (opt->loginfo && !opt->no_commit_id)
-		show_log(opt, opt->loginfo, opt->diffopt.with_stat ? "---\n" : "\n");
+		show_log(opt, opt->loginfo, opt->diffopt.with_stat ? "\n---\n\n" : "\n");
 	diff_flush(&opt->diffopt);
 	return 1;
 }
-- snap --


Yeah, I just wanted to mention it in case people rely on it.


I hoped it is not necessary to "FILE *realstdout = fdopen(dup(1));" but I 
can do it if this is wanted.


Well, I have to get used to add ".." after HEAD^, but that is probably not 
very difficult. I would like fmt-patch to error out without a range, 
though.


Oops. I really did not think of that.


Yes, this becomes easy now. I'll do that next.

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Teach fmt-patch to write individual files., Johannes Schindelin, (Thu May 4, 4:16 pm)
Re: [PATCH] Teach fmt-patch to write individual files., Junio C Hamano, (Thu May 4, 5:09 pm)
Re: [PATCH] Teach fmt-patch to write individual files., Johannes Schindelin, (Thu May 4, 5:56 pm)