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

Re: [RFC] git-send-email: Cache generated message-ids, use them when prompting

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Aug 18, 2013, 22:24 UTC
Message-ID
<20130818222359.GF64402@vauxhall.crustytoothpaste.net>
In-Reply-To
<7vvc32n1vz.fsf@alter.siamese.dyndns.org>
On Sun, Aug 18, 2013 at 02:08:00PM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> Rasmus Villemoes <rv@rasmusvillemoes.dk> writes:
> > +# Return an array of cached message-ids, ordered by "relevance". It
> > +# might make sense to take the Subject of the new mail as an extra
> > +# argument and do some kind of fuzzy matching against the old
> > +# subjects, but for now "more relevant" simply means "newer".
> > +sub msgid_cache_getmatches {
> > +	my ($maxentries) = @_;
> > +	$maxentries //= 10;
> 
> The //= operator is mentioned in perl581delta.pod, it seems, and
> none of our Perl scripted Porcelains seems to use it yet.  Is it
> safe to assume that everybody has it?

This operator is new in Perl 5.10. If you want the code to work on RHEL/CentOS 5, you need to avoid it, since they only have 5.8 available.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
Previous: Junio C HamanoNext: Rasmus Villemoes
Message 3 of 7 in “[RFC] git-send-email: Cache generated message-ids, use them when prompting”
  1. Rasmus VillemoesAug 17, 2013
  2. Junio C HamanoAug 18, 2013
  3. brian m. carlsonAug 18, 2013
  4. 0/2 git-send-email: Message-ID cachingRasmus Villemoes, Aug 21, 2013
  5. 1/2 git-send-email: add optional 'choices' parameter to the ask subRasmus Villemoes, Aug 21, 2013
  6. 2/2 git-send-email: Cache generated message-ids, use them when promptingRasmus Villemoes, Aug 21, 2013
  7. Junio C HamanoAug 22, 2013

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.