Re: [PATCH v5] diff: add config option relative
To
Đoàn Trần Công Danh
Cc
Laurent Arnoud
phillip.wood@dunelm.org.uk
brian m. carlson
git@vger.kernel.org
From
Junio C Hamano
See Also
Prev Ref 1 Ref 2 Ref 3 Ref 4 Ref 5 Ref 6
Date
2020-05-18 20:37:55 UTC
Đoàn Trần Công Danh  <congdanhqx@gmail.com> writes:

> We don't document --relative for git-format-patch, the --relative
> documentation is placed under the guard, for that matter:

Yup, since it does not make much sense or "diff.relative" for that
matter in the context of the "format-patch".  In the same sense, -R
makes little sense, so sane people would not want to read about the
option in the documentation, I would think.

> ifndef::git-format-patch[]
> -R::
>         Swap two inputs; that is, show differences from index or
>         on-disk file to tree contents.
>
> --relative[=<path>]::
>         When run from a subdirectory of the project, it can be
>         told to exclude changes outside the directory and show