From: Štěpán Němec Date: Fri, 08 Oct 2010 20:15:57 GMT Subject: Re: [PATCH 0/6] Unify argument and option notation in the docs Message-ID: <8739sgtp8i.fsf@gmail.com> In-Reply-To: <7v1v80wjuw.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > I had to fix up the whitespace damage in the rerolled 2/6 but otherwise > looked good. Yeah, sorry for that. Obviously the tabs got replaced by spaces when I copy-pasted the hunk and I didn't notice. > Thanks, both. It might make sense to outline the rules applied somewhere in > CodingGuidelines to help people who add to our documents. Something along > the lines of... > > - A placeholder is spelled inside angle brackets, e.g. , . > > - Choosing one from many is written with possible choices separated with > a vertical bar and the whole thing enclosed in parentheses, e.g. > answer=(yes|no|true|false) > > - Repetition of zero or more times of X is spelled as [(X)...], e.g. > [(-p )...] :-) I was actually considering just that, so I'm glad you mention it. I can try to compile an initial version of such a document, based on the commit message of the original single-patch version () and including some more cases/examples. Where do you think would be the most appropriate place for it? Just add a section to CodingGuidelines, or a separate Documentation/WritingGuidelines or something? Štěpán