Re: [PATCH 3/6] var: accept multiple variables on the command line

2012-11-14 Thread Jeff King
On Wed, Nov 14, 2012 at 09:01:48AM -0800, Jonathan Nieder wrote: > > DESCRIPTION > > --- > > -Prints a git logical variable. > > +Prints one or more git logical variables, separated by newlines. > > + > > +Note that some variables may contain newlines themselves > > Maybe a -z option to

Re: [PATCH 3/6] var: accept multiple variables on the command line

2012-11-14 Thread Jonathan Nieder
Jeff King wrote: > This patch lets callers specify multiple variables, and > prints one per line. Yay! [...] > --- a/Documentation/git-var.txt > +++ b/Documentation/git-var.txt > @@ -9,11 +9,16 @@ git-var - Show a git logical variable > SYNOPSIS > > [verse] > -'git var' ( -l | ) > +

[PATCH 3/6] var: accept multiple variables on the command line

2012-11-13 Thread Jeff King
Git-var currently only accepts a single value to print. This is inefficient if the caller is interested in finding multiple values, as they must invoke git-var multiple times. This patch lets callers specify multiple variables, and prints one per line. Signed-off-by: Jeff King --- This will late