From: Junio C Hamano Date: Mon, 12 May 2025 16:45:05 GMT Subject: Re: [PATCH v2 4/4] add-patch: add diff.context command line overrides Message-ID: In-Reply-To: <973dfadd1b3c7e214b14c75494b3b3b786227362.1746884789.git.gitgitgadget@gmail.com> "Leon Michalak via GitGitGadget" writes: > diff --git a/Documentation/diff-context-options.adoc b/Documentation/diff-context-options.adoc > new file mode 100644 > index 000000000000..e161260358ff > --- /dev/null > +++ b/Documentation/diff-context-options.adoc > @@ -0,0 +1,10 @@ > +`-U`:: > +`--unified=`:: > + Generate diffs with __ lines of context. Defaults to `diff.context` > + or 3 if the config option is unset. > + > +`--inter-hunk-context=`:: > + Show the context between diff hunks, up to the specified __ > + of lines, thereby fusing hunks that are close to each other. > + Defaults to `diff.interHunkContext` or 0 if the config option > + is unset. It might not be trivial to do but I wonder if we cannot do better than this to share more of the same text across manual pages. These two being options understood by `git diff`, we certainly have an existing description for them, no? Other than that, looking good to me. Thanks.