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

Re: [PATCH] difftool: silence warning

From
Ross Lagerwall <rosslagerwall@gmail.com>
Date
Aug 21, 2012, 09:42 UTC
Message-ID
<503357F6.2020907@gmail.com>
In-Reply-To
<CAJDDKr5W5YJoMEkX7_ax_pvwdibJ81LMzsM0Rnkn1=9=Nu25EA@mail.gmail.com>
On 08/21/2012 11:04 AM, David Aguilar wrote:
> This patch is obviously correct, but it won't apply in git's "next" branch.
> Can you please prepare a patch based on the version in next?
> 
Sure.
Show 8 quoted lines
> 
> A small question on Perl style for the list... is it better say this?
> 
>    exit(0) unless $diffrtn;
> 
> or is it better to explicitly check for undef using defined($diffrtn)
> like was done in this patch? I would assume that explicit is preferred.
> 
It seems like defined() is used throughout git-difftool so I just used that.
Regards
-- 
Ross Lagerwall
Previous: David Aguilar
Message 3 of 3 in “difftool: silence warning”
  1. difftool: silence warningRoss Lagerwall, Aug 21, 2012
  2. David AguilarAug 21, 2012
  3. Ross LagerwallAug 21, 2012

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.