* [PATCH] diff: mark some file local symbols as static
@ 2017-05-20 23:37 Ramsay Jones
2017-05-22 16:42 ` Stefan Beller
0 siblings, 1 reply; 2+ messages in thread
From: Ramsay Jones @ 2017-05-20 23:37 UTC (permalink / raw)
To: Stefan Beller; +Cc: Junio C Hamano, GIT Mailing-list
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Stefan,
If you need to re-roll your 'sb/diff-color-move' branch, could you
please squash this into to the relevant patches. (Each hunk would
be squashed into a separate commit, thus:
- commit 9b68d54c11, "diff: buffer all output if asked to"
- commit 4b71ba47ab, "submodule.c: convert show_submodule_summary to use emit_line_fmt"
- commit 703d25581d, "diff.c: convert show_stats to use emit_line_*"
).
Thanks!
ATB,
Ramsay Jones
diff.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/diff.c b/diff.c
index ba23c5862..15f389676 100644
--- a/diff.c
+++ b/diff.c
@@ -810,10 +810,10 @@ static void append_buffered_patch_line(struct diff_options *o,
f->line = e->line ? xmemdupz(e->line, e->len) : NULL;
}
-void emit_line(struct diff_options *o,
- const char *set, const char *reset,
- int add_line_prefix, int markup_ws,
- int sign, const char *line, int len)
+static void emit_line(struct diff_options *o,
+ const char *set, const char *reset,
+ int add_line_prefix, int markup_ws,
+ int sign, const char *line, int len)
{
struct buffered_patch_line e = {set, reset, line,
len, sign, add_line_prefix,
@@ -825,10 +825,10 @@ void emit_line(struct diff_options *o,
emit_buffered_patch_line(o, &e);
}
-void emit_line_fmt(struct diff_options *o,
- const char *set, const char *reset,
- int add_line_prefix,
- const char *fmt, ...)
+static void emit_line_fmt(struct diff_options *o,
+ const char *set, const char *reset,
+ int add_line_prefix,
+ const char *fmt, ...)
{
struct strbuf sb = STRBUF_INIT;
va_list ap;
@@ -1862,8 +1862,8 @@ static void fill_print_name(struct diffstat_file *file)
file->print_name = pname;
}
-void print_stat_summary_0(struct diff_options *options, int files,
- int insertions, int deletions)
+static void print_stat_summary_0(struct diff_options *options, int files,
+ int insertions, int deletions)
{
struct strbuf sb = STRBUF_INIT;
--
2.13.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] diff: mark some file local symbols as static
2017-05-20 23:37 [PATCH] diff: mark some file local symbols as static Ramsay Jones
@ 2017-05-22 16:42 ` Stefan Beller
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Beller @ 2017-05-22 16:42 UTC (permalink / raw)
To: Ramsay Jones; +Cc: Junio C Hamano, GIT Mailing-list
On Sat, May 20, 2017 at 4:37 PM, Ramsay Jones
<ramsay@ramsayjones.plus.com> wrote:
>
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Stefan,
>
> If you need to re-roll your 'sb/diff-color-move' branch, could you
> please squash this into to the relevant patches. (Each hunk would
> be squashed into a separate commit, thus:
> - commit 9b68d54c11, "diff: buffer all output if asked to"
> - commit 4b71ba47ab, "submodule.c: convert show_submodule_summary to use emit_line_fmt"
> - commit 703d25581d, "diff.c: convert show_stats to use emit_line_*"
> ).
>
> Thanks!
Will do, thanks!
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-05-22 16:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-20 23:37 [PATCH] diff: mark some file local symbols as static Ramsay Jones
2017-05-22 16:42 ` Stefan Beller
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).