diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-11 14:46:31 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-11 14:49:50 -0800 |
commit | 8bb4646dae89035695e72a39d6fe1c0f364ea0aa (patch) | |
tree | 1bb31c78644ac1eb034212b97f3730733286ebae /grep.c | |
parent | a9645b780b698703cd7dee25051d6ce39b0544c6 (diff) | |
parent | 9db56f71b91153f4076a796c80c61f00edd8b700 (diff) | |
download | git-8bb4646dae89035695e72a39d6fe1c0f364ea0aa.tar.gz |
Merge branch 'maint'
* maint:
Fix non-literal format in printf-style calls
git-submodule: Avoid printing a spurious message.
git ls-remote: make usage string match manpage
Makefile: help people who run 'make check' by mistake
Diffstat (limited to 'grep.c')
-rw-r--r-- | grep.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -514,7 +514,7 @@ static int grep_buffer_1(struct grep_opt *opt, const char *name, if (from <= last_shown) from = last_shown + 1; if (last_shown && from != last_shown + 1) - printf(hunk_mark); + fputs(hunk_mark, stdout); while (from < lno) { pcl = &prev[lno-from-1]; show_line(opt, pcl->bol, pcl->eol, @@ -524,7 +524,7 @@ static int grep_buffer_1(struct grep_opt *opt, const char *name, last_shown = lno-1; } if (last_shown && lno != last_shown + 1) - printf(hunk_mark); + fputs(hunk_mark, stdout); if (!opt->count) show_line(opt, bol, eol, name, lno, ':'); last_shown = last_hit = lno; @@ -535,7 +535,7 @@ static int grep_buffer_1(struct grep_opt *opt, const char *name, * we need to show this line. */ if (last_shown && lno != last_shown + 1) - printf(hunk_mark); + fputs(hunk_mark, stdout); show_line(opt, bol, eol, name, lno, '-'); last_shown = lno; } |