Re: add --match argument to git-version-gen

2012-07-07 Thread Stefano Lattarini
On 07/07/2012 10:42 PM, Jim Meyering wrote: > Andy Wingo wrote: > ... >> +function massage_git_version() { >> +local v=$1 > > Using the "function" and "local" keywords would make this script > fail for some older shells. > With the "function" keyword, even recent ones: $ dpkg -l dash ...

Re: add --match argument to git-version-gen

2012-07-07 Thread Jim Meyering
Andy Wingo wrote: > On Fri 06 Jul 2012 17:45, Jim Meyering writes: > >> How about writing a function -- with description similar to the comments >> you've added below -- and doing something like the following? >> Then we should be able to avoid that duplication. >> >> elif test "`git log -1 --