chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
900666f
)
Move struct commit to appear just above the main view backend
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 21 May 2006 02:08:52 +0000
(
04:08
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sun, 21 May 2006 02:08:52 +0000
(
04:08
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index faf9193b85db08112f9437213bf82b84421a2e19..53d477025f2422f70c3debf127dbdef8bcf87c83 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-136,13
+136,7
@@
struct ref {
unsigned int next:1; /* For ref lists: are there more refs? */
};
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
*/
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)
static bool
main_draw(struct view *view, unsigned int lineno)