Re: [PATCH/RFC v3 2/4] git-am.txt: add configuration section in git am documentation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 3, 2015, 16:42 UTC
- Message-ID
- <xmqqwpzkyc8p.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <vpq4mmoep9y.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 18 quoted lines
>> OPTIONS >> ------- >> (<mbox>|<Maildir>)...:: >> @@ -43,11 +53,11 @@ OPTIONS >> --keep-non-patch:: >> Pass `-b` flag to 'git mailinfo' (see linkgit:git-mailinfo[1]). >> >> ---[no-]keep-cr:: >> +--keep-cr:: >> +--no-keep-cr:: >> With `--keep-cr`, call 'git mailsplit' (see linkgit:git-mailsplit[1]) >> with the same option, to prevent it from stripping CR at the end of >> - lines. `am.keepcr` configuration variable can be used to specify the >> - default behaviour. > > I don't think it's a good idea to remove this part. If I look for a way > to make --keep-cr the default, the first place I'd look would be the doc > for --keep-cr, and I'd appreciate a link to am.keepcr.
Yup, very sensible suggestion. Configuration gives default, command line options override the default. People come two different ends; having to describe the same thing twice is wasteful, but will help them one indirection to find relevant facts in the documentation.