From 6180e6169d6e87a3bea7e4da835dca17f93e5cfd Mon Sep 17 00:00:00 2001 From: Johan Herland Date: Thu, 10 Jun 2010 20:15:27 +0200 Subject: Add URL parameter 'context' for changing the number of context lines in diffs The new ctx.qry.context variable is picked up by cgit_print_diff(), and passed via cgit_diff_files() to Git's diff machinery. Signed-off-by: Johan Herland Signed-off-by: Lars Hjemli --- cgit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index 2c3ad73..e9bafb5 100644 --- a/cgit.c +++ b/cgit.c @@ -250,6 +250,8 @@ static void querystring_cb(const char *name, const char *value) ctx.qry.period = xstrdup(value); } else if (!strcmp(name, "ss")) { ctx.qry.ssdiff = atoi(value); + } else if (!strcmp(name, "context")) { + ctx.qry.context = atoi(value); } } -- cgit v1.2.3-70-g09d2 ='0.13'>0.13 Portato - A Portage GUIRené 'Necoro' Neumann
summaryrefslogtreecommitdiff
Commit message (Expand)AuthorFilesLines
2009-09-06Install .menuRené 'Necoro' Neumann1-1/+1
2009-09-06Automatic loading of the external menuRené 'Necoro' Neumann2-3/+25
2009-09-06Make glade update the MainWindow.ui fileRené 'Necoro' Neumann1-85/+134
2009-09-06Moved the menu to an extra fileRené 'Necoro' Neumann2-210/+207
2009-09-05One database instance is enough :)René 'Necoro' Neumann1-7/+18
2009-09-05Print database type at the bottom of exceptions. NOTE: This does not handle m...René 'Necoro' Neumann2-1/+6
2009-09-05Fix an error, where a category vanishes after refreshing, using the EixSQLDat...René 'Necoro' Neumann2-1/+19
2009-09-03And here is the debugging again :) ... using ctypesRené 'Necoro' Neumann1-1/+8
2009-09-03Screw debugging ... prefer the ctypes approach to get rid of yet another c-mo...René 'Necoro' Neumann3-27/+11
2009-09-03Use this wrapper instead of ctypes to set the textdomain and stuff for the gt...René 'Necoro' Neumann1-9/+5
2009-09-03Add small wrapper to C-gettextRené 'Necoro' Neumann2-1/+22
2009-08-31Update messages.potRené 'Necoro' Neumann1-42/+94
2009-08-31Removed the gtk- strings from translationsRené 'Necoro' Neumann7-3639/+3479
2009-08-31Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11
2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0
2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8
2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1
2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687
2009-08-15Update spanish translationDaniel Halens1-245/+258
2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15
2009-08-15TypoRené 'Necoro' Neumann1-1/+1
2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8
2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0