In both the Github client for Mac OS X and Github on the web, a diff only shows 3 lines of context (lines above and below the change).
Is there any way to show more lines of context in Github?
In both the Github client for Mac OS X and Github on the web, a diff only shows 3 lines of context (lines above and below the change).
Is there any way to show more lines of context in Github?
If you are using git diff on the command line, the -U option set the amount of contest to use. So for example git diff -U10 file will show the differences between your working version of file and the index version, with 10 lines of context.
If you're using a GUI client it may have a config param buried somewhere in a preferences menu. Unfortunately, there does not appear to be a gitconfig variable to set this.