Re: [PATCH v6 14/14] difftool/mergetool: refactor commands to use git-mergetool--lib
On Sat, Apr 11, 2009 at 01:00:40PM +0100, Charles Bailey wrote:
Show 15 quoted lines
> On Wed, Apr 08, 2009 at 12:17:20AM -0700, David Aguilar wrote:
> > + present=false
> > + base_present &&
> > + present=true
>
> I'm not sure why, but from a style point of view, this seemed a bit
> inconsistent from the rest of mergetool and grated with me a bit.
>
> I think I'd prefer
>
> if base_present; then
> present=false
> else
> present=true
> fi
Although with 'true' and 'false' the corrent way around, obviously.
Show 5 quoted lines
>
> or even:
>
> present=$(base_present && echo true || echo false)
>
--
Charles Bailey
http://ccgi.hashpling.plus.com/blog/