* [tig] [PATCH] Display line numbers in main view
@ 2011-08-05 1:06 Kumar Appaiah
2011-08-29 3:16 ` Jonas Fonseca
0 siblings, 1 reply; 2+ messages in thread
From: Kumar Appaiah @ 2011-08-05 1:06 UTC (permalink / raw)
To: git; +Cc: Jonas Fonseca
When line numbers are enabled, this enables the display of line
numbers in the main view as well. This is useful for cases where one
would want to quickly navigate to a particular commit by the ordering
displayed in tig, using the `:<num>' approach.
---
tig.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tig.c b/tig.c
index ed92400..92091ab 100644
--- a/tig.c
+++ b/tig.c
@@ -6194,6 +6194,9 @@ main_draw(struct view *view, struct line *line, unsigned int lineno)
if (!commit->author)
return FALSE;
+ if (opt_line_number && draw_lineno(view, lineno))
+ return TRUE;
+
if (draw_date(view, &commit->time))
return TRUE;
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [tig] [PATCH] Display line numbers in main view
2011-08-05 1:06 [tig] [PATCH] Display line numbers in main view Kumar Appaiah
@ 2011-08-29 3:16 ` Jonas Fonseca
0 siblings, 0 replies; 2+ messages in thread
From: Jonas Fonseca @ 2011-08-29 3:16 UTC (permalink / raw)
To: git
Applied, thanks!
On Thu, Aug 4, 2011 at 21:06, Kumar Appaiah <a.kumar@alumni.iitm.ac.in> wrote:
> When line numbers are enabled, this enables the display of line
> numbers in the main view as well. This is useful for cases where one
> would want to quickly navigate to a particular commit by the ordering
> displayed in tig, using the `:<num>' approach.
> ---
> tig.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/tig.c b/tig.c
> index ed92400..92091ab 100644
> --- a/tig.c
> +++ b/tig.c
> @@ -6194,6 +6194,9 @@ main_draw(struct view *view, struct line *line, unsigned int lineno)
> if (!commit->author)
> return FALSE;
>
> + if (opt_line_number && draw_lineno(view, lineno))
> + return TRUE;
> +
> if (draw_date(view, &commit->time))
> return TRUE;
>
> --
> 1.7.2.5
>
--
Jonas Fonseca
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-29 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 1:06 [tig] [PATCH] Display line numbers in main view Kumar Appaiah
2011-08-29 3:16 ` Jonas Fonseca
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.