Lines Matching refs:context
524 without any surrounding context. Sometimes such output is the clearest
526 unchanged lines (although you can get similar results with the context
527 or unified formats by using 0 lines of context). However, this format
529 context format (@pxref{Context Format}) and the unified format
608 @cindex context output format
614 files are called the @dfn{context}.
616 GNU @code{diff} provides two output formats that show context around the
617 differing lines: @dfn{context format} and @dfn{unified format}. It can
623 that show context so that they can apply the diffs even if they have
626 context around the differing lines; if those lines are actually a few
634 * Unified Format:: A more compact output format that shows context.
636 * Alternate Names:: Showing alternate file names in context headers.
642 The context output format shows several lines of context around the
647 @samp{--context@r{[}=@var{lines}@r{]}}, or @samp{-c} option. The
649 lines of context to show. If you do not specify @var{lines}, it
651 at least two lines of context.
654 * Detailed Context:: A detailed description of the context output format.
655 * Example Context:: Sample output in context format.
656 * Less Context:: Another sample with less context.
662 The context output format starts with a two-line header, which looks
687 The lines of context around the lines that differ start with two space
716 different; they are the context lines. Also notice that the first two
752 Here is the output of @samp{diff --context=1 lao tzu} (@pxref{Sample
754 at most one context line is reported here.
785 The unified output format is a variation on the context format that is
786 more compact because it omits redundant context lines. To select this
789 option. The argument @var{lines} is the number of lines of context to
794 operation, @code{patch} typically needs at least two lines of context.
905 use it, you must select the context format (@pxref{Context Format}) or
912 line of asterisks in the context format, or to the @samp{@@@@} line in
927 This option automatically defaults to the context output format
928 (@pxref{Context Format}), with the default number of lines of context.
945 of the context and unified output formats. To do this, use the @samp{-L
1088 show any context; unlike the normal format, it does not include the
1785 differences without surrounding context. Hunks are labeled depending
2357 @itemx --context
2358 context diff.
2403 characters must still match exactly. Each line of the context must
2424 a delete) since appends always succeed, because a null context matches
2441 For context diffs, and to a lesser extent normal diffs, @code{patch} can
2447 set of lines matching the context given in the hunk.
2449 First @code{patch} looks for a place where all lines of the context
2450 match. If it cannot find such a place, and it is reading a context or
2453 context. If that fails, and the maximum fuzz factor is set to 2 or
2455 of context are ignored. It continues similarly if the maximum fuzz
2459 maximum fuzz factor to @var{lines}. This option only applies to context
2463 not be set to more than the number of lines of context in the diff,
2468 on how reject files are named). It writes out rejected hunks in context
2487 context diff using a fuzz factor equal to or greater than the number of
2488 lines of context shown in the diff (typically 3). In these cases, you
2489 should probably look at a context diff between your original and patched
2610 context diff header or with an @samp{Index:} line. If you are patching
2656 for patch distributions is context format with two lines of context,
2658 than two lines of context, because @code{patch} typically needs at
2792 Show @var{lines} (an integer) lines of context. This option does not
2796 operation, @code{patch} typically needs at least two lines of context.
2817 Use the context output format. @xref{Context Format}.
2820 @itemx --context@r{[}=@var{lines}@r{]}
2821 Use the context output format, showing @var{lines} (an integer) lines of
2822 context, or three if @var{lines} is not given. @xref{Context Format}.
2824 context.
2859 In context and unified format, for each hunk of differences, show some
2912 context format. This causes the alignment of tabs in the line to look
2919 Use @var{label} instead of the file name in the context format
2924 Use @var{label} instead of the file name in the context format
3013 In context and unified format, for each hunk of differences, show some
3038 context format. This causes the alignment of tabs in the line to look
3064 context, or three if @var{lines} is not given. @xref{Unified Format}.
3066 context.
3255 header of a context or unified diff, @code{patch} looks in lines
3424 @itemx --context
3425 Interpret the patch file as a context diff. @xref{patch Input}.