diff: diff.context configuration gives default to -U
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 27 Sep 2012 19:12:52 +0000 (15:12 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Oct 2012 03:16:01 +0000 (20:16 -0700)
commit6468a4e5486d01e4da5ea8e8f2990523c3d18688
treeab54a578966fcf48d31fda77f716048b4ba3ae87
parent652398a88e7c3d18b6820a2ae369b05d26dc757f
diff: diff.context configuration gives default to -U

Introduce a configuration variable diff.context that tells
Porcelain commands to use a non-default number of context
lines instead of 3 (the default).  With this variable, users
do not have to keep repeating "git log -U8" from the command
line; instead, it becomes sufficient to say "git config
diff.context 8" just once.

Signed-off-by: Jeff Muizelaar <jmuizelaar@mozilla.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/diff-config.txt
diff.c
t/t4055-diff-context.sh [new file with mode: 0755]