{"action":"created","issue":{"url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/13","labels_url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/13/comments","events_url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/13/events","html_url":"https://github.com/tomaswolf/gerrit-gitblit-plugin/issues/13","id":125448541,"number":13,"title":"Allow user or admin to set the number of lines of context when doing a diff","user":{"login":"lscarval","id":1616895,"avatar_url":"https://avatars.githubusercontent.com/u/1616895?v=3","gravatar_id":"","url":"https://api.github.com/users/lscarval","html_url":"https://github.com/lscarval","followers_url":"https://api.github.com/users/lscarval/followers","following_url":"https://api.github.com/users/lscarval/following{/other_user}","gists_url":"https://api.github.com/users/lscarval/gists{/gist_id}","starred_url":"https://api.github.com/users/lscarval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lscarval/subscriptions","organizations_url":"https://api.github.com/users/lscarval/orgs","repos_url":"https://api.github.com/users/lscarval/repos","events_url":"https://api.github.com/users/lscarval/events{/privacy}","received_events_url":"https://api.github.com/users/lscarval/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-07T17:41:41Z","updated_at":"2016-01-08T13:12:31Z","closed_at":null,"body":"The default behavior is to show the diff and 3 lines of context only. \r\n\r\nFor most of the commits 3 lines are not enough. Many times, it is difficult to grasp the change with such a small diff context.\r\n\r\nPlease, consider adding a some sort of visual setting that allows the user to set the number of context lines.\r\n\r\nIf that's not possible, than consider adding an option to set something in a config file that the Gerrit admin can set, which would still be fixed, but could be set at a higher number.\r\n\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/comments/169998004","html_url":"https://github.com/tomaswolf/gerrit-gitblit-plugin/issues/13#issuecomment-169998004","issue_url":"https://api.github.com/repos/tomaswolf/gerrit-gitblit-plugin/issues/13","id":169998004,"user":{"login":"tomaswolf","id":8580452,"avatar_url":"https://avatars.githubusercontent.com/u/8580452?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaswolf","html_url":"https://github.com/tomaswolf","followers_url":"https://api.github.com/users/tomaswolf/followers","following_url":"https://api.github.com/users/tomaswolf/following{/other_user}","gists_url":"https://api.github.com/users/tomaswolf/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaswolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaswolf/subscriptions","organizations_url":"https://api.github.com/users/tomaswolf/orgs","repos_url":"https://api.github.com/users/tomaswolf/repos","events_url":"https://api.github.com/users/tomaswolf/events{/privacy}","received_events_url":"https://api.github.com/users/tomaswolf/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T13:12:30Z","updated_at":"2016-01-08T13:12:30Z","body":"That's Gitblit core functionality. As far as I see, Gitblit always uses the (default) seting of 3 lines.\r\n\r\nA visual way to change that would have to be done in Gitblit itself -- unless I'm missing something, it doesn't have that yet. Maybe a user preference -- but it looks like I'll have to revisit user preferences anyway; looks like they don't save...\r\n\r\nA configuration setting would be a much less invasive change that I could do in the Gerrit plugin itself, but it's sub-optimal, as it would be a global setting for everyone everywhere.\r\n\r\nI'll see what I can do with reasonable effort."}}