From: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
To: Jonas Fonseca <jonas.fonseca@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: [tig] [PATCHv2 3/3] log: Colour the diff stat
Date: Wed, 16 Apr 2014 21:04:54 -0400 [thread overview]
Message-ID: <20140417010454.GA27665@odessa> (raw)
In-Reply-To: <CAFuPQ1JbpNcun3hGps=hwaM14wOjF+iU9bsm9+ZmJvJV_Fea4Q@mail.gmail.com>
On Wed, Apr 16, 2014 at 08:44:41PM -0400, Jonas Fonseca wrote:
> On Sun, Apr 13, 2014 at 5:54 PM, Kumar Appaiah
> <a.kumar@alumni.iitm.ac.in> wrote:
> >
> > This commit adds custom log_read and log_draw functions that utilize
> > the diff stat drawing functions from the diff module. The absence of
> > the triple hyphen separator prevents direct usage of the diff drawing
> > functions directly.
>
> See my comments below.
Hi Jonas.
> > +static bool
> > +log_draw(struct view *view, struct line *line, unsigned int lineno)
> > +{
> > + char *text = line->data;
> > + enum line_type type = line->type;
> > +
>
> This is missing a call to draw_lineno(...)
Noted.
> > + if (type == LINE_DIFF_STAT) {
> > + diff_common_draw_diff_stat(view, &type, &text);
> > + draw_text(view, type, text);
>
> I had to #include "tig/draw.h" for this to compile.
I'll take care of this.
I'll send you a pull request eventually. You can handle it after your
refactor is complete.
Thanks!
Kumar
--
Kumar Appaiah
next prev parent reply other threads:[~2014-04-17 1:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-11 12:20 [tig] [PATCH 0/3] log: colour the diffstat Kumar Appaiah
2014-04-11 12:20 ` [tig] [PATCH 1/3] diff: Move diff stat addition to a common function Kumar Appaiah
2014-04-11 12:20 ` [tig] [PATCH 2/3] diff: Move diff stat drawing " Kumar Appaiah
2014-04-11 12:20 ` [tig] [PATCH 3/3] log: Colour the diff stat Kumar Appaiah
2014-04-13 21:54 ` [tig] [PATCHv2 0/3] log: colour the diffstat Kumar Appaiah
2014-04-13 21:54 ` [tig] [PATCHv2 1/3] diff: Move diff stat addition to a common function Kumar Appaiah
2014-04-13 21:54 ` [tig] [PATCHv2 2/3] diff: Move diff stat drawing " Kumar Appaiah
2014-04-13 21:54 ` [tig] [PATCHv2 3/3] log: Colour the diff stat Kumar Appaiah
2014-04-17 0:44 ` Jonas Fonseca
2014-04-17 1:04 ` Kumar Appaiah [this message]
2014-04-17 0:52 ` [tig] [PATCHv2 0/3] log: colour the diffstat Jonas Fonseca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140417010454.GA27665@odessa \
--to=a.kumar@alumni.iitm.ac.in \
--cc=git@vger.kernel.org \
--cc=jonas.fonseca@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).