History

Grep the source, Luke

This is a PoC for grepping the blobs in the current tree.

Lars Hjemli committed 15 years ago

Commit c028b601 parent fdfb6a65 files · +223 −8Browse files

Showing the changes to cmd.c (1 of 5 files). Show all

Unified · Split

cmd.c+4−1
@@ -127,7 +127,10 @@ static void tag_fn(struct cgit_context *ctx) · 126 unmodified lines
127 127
128static void tree_fn(struct cgit_context *ctx)128static void tree_fn(struct cgit_context *ctx)
129{129{
130 cgit_print_tree(ctx->qry.sha1, ctx->qry.path);130 if (ctx->qry.grep)
131 cgit_grep(ctx->qry.sha1, ctx->qry.path, ctx->qry.grep);
132 else
133 cgit_print_tree(ctx->qry.sha1, ctx->qry.path);
131}134}
132 135
133#define def_cmd(name, want_repo, want_layout, want_vpath, is_clone) \136#define def_cmd(name, want_repo, want_layout, want_vpath, is_clone) \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t