mirror of
https://git.zx2c4.com/cgit
synced 2025-07-09 01:34:34 +02:00
ui-summary: Pass filename to about-filter
This gives the about-filter API the same semantics as source-filter, where the filter receives the filename so it can decide what to do next with it. While we're at it, plug a memory leak. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
3cb5d86dc6
commit
c0dfaf1c28
4 changed files with 22 additions and 8 deletions
2
cgit.c
2
cgit.c
|
@ -37,10 +37,10 @@ static struct cgit_filter *new_filter(const char *cmd, filter_type filtertype)
|
|||
|
||||
switch (filtertype) {
|
||||
case SOURCE:
|
||||
case ABOUT:
|
||||
extra_args = 1;
|
||||
break;
|
||||
|
||||
case ABOUT:
|
||||
case COMMIT:
|
||||
default:
|
||||
extra_args = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue