git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v6 14/14] difftool/mergetool: refactor commands to use git-mergetool--lib

From
Charles Bailey <charles@hashpling.org>
Date
Apr 11, 2009, 12:10 UTC
Message-ID
<20090411121054.GC10381@hashpling.org>
In-Reply-To
<20090411120040.GA10381@hashpling.org>
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/
Previous: Charles BaileyNext: David Aguilar
Message 3 of 4 in “difftool/mergetool: refactor commands to use git-mergetool--lib”
  1. 14/14 difftool/mergetool: refactor commands to use git-mergetool--libDavid Aguilar, Apr 8, 2009
  2. Charles BaileyApr 11, 2009
  3. Charles BaileyApr 11, 2009
  4. David AguilarApr 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.