From ff26aa294779c69563bb7d92c6e08f5a7128b074 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 21 May 2006 04:08:52 +0200 Subject: [PATCH] Move struct commit to appear just above the main view backend --- tig.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tig.c b/tig.c index faf9193..53d4770 100644 --- a/tig.c +++ b/tig.c @@ -136,13 +136,7 @@ struct ref { unsigned int next:1; /* For ref lists: are there more refs? */ }; -struct commit { - char id[41]; /* SHA1 ID. */ - char title[75]; /* The first line of the commit message. */ - char author[75]; /* The author of the commit. */ - struct tm time; /* Date from the author ident. */ - struct ref **refs; /* Repository references; tags & branch heads. */ -}; +static struct ref **get_refs(char *id); /* @@ -1446,7 +1440,7 @@ view_driver(struct view *view, enum request request) /* - * View backend handlers + * Pager backend */ static bool @@ -1585,7 +1579,17 @@ static struct view_ops pager_ops = { }; -static struct ref **get_refs(char *id); +/* + * Main view backend + */ + +struct commit { + char id[41]; /* SHA1 ID. */ + char title[75]; /* The first line of the commit message. */ + char author[75]; /* The author of the commit. */ + struct tm time; /* Date from the author ident. */ + struct ref **refs; /* Repository references; tags & branch heads. */ +}; static bool main_draw(struct view *view, unsigned int lineno) -- 2.11.0