From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jakub Narebski Subject: Re: [PATCH] Documentation/git-stash.txt: Adjust SYNOPSIS command syntaxes Date: Fri, 01 Feb 2008 16:38:08 -0800 (PST) Message-ID: References: <7ihp802o.fsf@blue.sea.net> <1w7w966m.fsf@blue.sea.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org, Junio C Hamano , Jakub Narebski To: Jari Aalto X-From: git-owner@vger.kernel.org Sat Feb 02 01:39:19 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JL6Pd-0003lc-QI for gcvg-git-2@gmane.org; Sat, 02 Feb 2008 01:39:18 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759039AbYBBAiS (ORCPT ); Fri, 1 Feb 2008 19:38:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765876AbYBBAiR (ORCPT ); Fri, 1 Feb 2008 19:38:17 -0500 Received: from py-out-1112.google.com ([64.233.166.176]:7485 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765821AbYBBAiM (ORCPT ); Fri, 1 Feb 2008 19:38:12 -0500 Received: by py-out-1112.google.com with SMTP id u52so1939819pyb.10 for ; Fri, 01 Feb 2008 16:38:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:x-authentication-warning:to:cc:subject:references:in-reply-to:message-id:lines:user-agent:mime-version:content-type:from:date; bh=KwB2ukj4GMVWoY5A6Yy+evsm5gjylS1MJj4iG31qRlU=; b=INR2ATZF+r3SgS41aiuGjzzsMfJvQikwIaJso6gzU2pHj+BRseZRNKIusx/YDIa8GG7N7wXs4/C1NGGSuT3a4YWdn3BTi0vuTKsgAydwyheX0w6XLCQQQ8E1TVh9l+Km/H89C/hnbD5l3nqdpYeU3Kz14ADORIRTKbvEn7v1Zbw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:to:cc:subject:references:in-reply-to:message-id:lines:user-agent:mime-version:content-type:from:date; b=tOINbYyFp2JC4AE75HM2lj6uAJIIkVZQqpyfY7eMasKKEaIRO9kQ6j/nw+SDSVEmGb/mmTOpLVwFtzbh3rwXP7q08gNpbhPT5mDRe2Xlaf/NFvym9lJGNmIXtY2kXEMrAKDj7wrll8Xn8hd09NSxKM3i0sxu78QKwUyQ7XG8MOg= Received: by 10.65.95.12 with SMTP id x12mr6825043qbl.71.1201912691102; Fri, 01 Feb 2008 16:38:11 -0800 (PST) Received: from localhost.localdomain ( [83.8.228.251]) by mx.google.com with ESMTPS id d2sm10847529nfc.11.2008.02.01.16.38.07 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Feb 2008 16:38:08 -0800 (PST) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.4/8.13.4) with ESMTP id m120c2ce022797; Sat, 2 Feb 2008 01:38:03 +0100 Received: (from jnareb@localhost) by localhost.localdomain (8.13.4/8.13.4/Submit) id m120c0Uk022793; Sat, 2 Feb 2008 01:38:00 +0100 X-Authentication-Warning: localhost.localdomain: jnareb set sender to jnareb@fuw.edu.pl using -f In-Reply-To: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Jari Aalto writes: > * Fri 2008-02-01 Jakub Narebski > * Message-Id: m33asc94xn.fsf@localhost.localdomain >> Jari Aalto writes: >> >>> * Fri 2008-02-01 Jakub Narebski >>> * Message-Id: m37iho9b70.fsf@localhost.localdomain >>>> >>>> >>>> 'git-stash' (list | show [] | apply [] | clear) >>>> 'git-stash' [save [...]] >>>> >>>> Angle brackets if I understand correctly are meant to denote part >>>> which you have to enter, the user supplied info (the reast ou have to >>>> enter literally). >>> >>> Nowhere I have seen "(" parenheses to mean "required". >> >> The "(" parentheses does not mean "required". They do mean "group", >> just like for regular expressions. So "A (B | C)" means "A B" or >> "A C". > > In regexp language yes, but in describing the command syntaxes, I do not > have come accross this. Would you have descriptive examples? It seems that I was mistaken about that. Junio suggestion of following others example and using "{}" curly brackets for grouping alternate choices is IMHO a good solution. ...or perhaps not. For example synopsis for git-branch uses this syntax. >>> The angle brackets are commonly used to tell that the part is to be >>> required: >>> >>> command