author | Lars Hjemli <hjemli@gmail.com> | 2008-09-01 20:40:55 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-09-01 20:40:55 (UTC) |
commit | d532c4d1612c94347427fa1afda6afb7c34e512a (patch) (unidiff) | |
tree | 53f3f86ba8e78051bee96cb65a6219ef43d9adab /cmd.c | |
parent | 288d502b3d8e7fa916104b486bbb146521e5c716 (diff) | |
parent | 885096c189574b1cf2e0897cc05aadd7b092a677 (diff) | |
download | cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.zip cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.tar.gz cgit-d532c4d1612c94347427fa1afda6afb7c34e512a.tar.bz2 |
Merge branch 'lh/plain'
* lh/plain:
Supply status description to html_status()
ui-tree: link to plain view instead of blob view
Implement plain view
-rw-r--r-- | cmd.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -16,8 +16,9 @@ | |||
16 | #include "ui-commit.h" | 16 | #include "ui-commit.h" |
17 | #include "ui-diff.h" | 17 | #include "ui-diff.h" |
18 | #include "ui-log.h" | 18 | #include "ui-log.h" |
19 | #include "ui-patch.h" | 19 | #include "ui-patch.h" |
20 | #include "ui-plain.h" | ||
20 | #include "ui-refs.h" | 21 | #include "ui-refs.h" |
21 | #include "ui-repolist.h" | 22 | #include "ui-repolist.h" |
22 | #include "ui-snapshot.h" | 23 | #include "ui-snapshot.h" |
23 | #include "ui-summary.h" | 24 | #include "ui-summary.h" |
@@ -90,8 +91,13 @@ static void patch_fn(struct cgit_context *ctx) | |||
90 | { | 91 | { |
91 | cgit_print_patch(ctx->qry.sha1); | 92 | cgit_print_patch(ctx->qry.sha1); |
92 | } | 93 | } |
93 | 94 | ||
95 | static void plain_fn(struct cgit_context *ctx) | ||
96 | { | ||
97 | cgit_print_plain(ctx); | ||
98 | } | ||
99 | |||
94 | static void refs_fn(struct cgit_context *ctx) | 100 | static void refs_fn(struct cgit_context *ctx) |
95 | { | 101 | { |
96 | cgit_print_refs(); | 102 | cgit_print_refs(); |
97 | } | 103 | } |
@@ -134,8 +140,9 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) | |||
134 | def_cmd(log, 1, 1), | 140 | def_cmd(log, 1, 1), |
135 | def_cmd(ls_cache, 0, 0), | 141 | def_cmd(ls_cache, 0, 0), |
136 | def_cmd(objects, 1, 0), | 142 | def_cmd(objects, 1, 0), |
137 | def_cmd(patch, 1, 0), | 143 | def_cmd(patch, 1, 0), |
144 | def_cmd(plain, 1, 0), | ||
138 | def_cmd(refs, 1, 1), | 145 | def_cmd(refs, 1, 1), |
139 | def_cmd(repolist, 0, 0), | 146 | def_cmd(repolist, 0, 0), |
140 | def_cmd(snapshot, 1, 0), | 147 | def_cmd(snapshot, 1, 0), |
141 | def_cmd(summary, 1, 1), | 148 | def_cmd(summary, 1, 1), |