This commit is contained in:
Joey Hess 2014-03-15 17:46:46 -04:00
parent 062d5b9641
commit 699d49a268
Failed to extract signature

View file

@ -0,0 +1,18 @@
Added some power and convenience to [[preferred_content]] expressions.
Before, "standard" was a special case. Now it's a first-class keyword,
so you can do things like "standard or present" to use the standard
preferred content expression, modified to also want any file that happens
to be present.
Also added a way to write your own reusable preferred content expressions,
tied to groups. To make a repository use them, set its preferred
content to "groupwanted". Of course, "groupwanted" is also a first-class
keyword, so "not groupwanted" or something can also be done.
While I was at it, I made `vicfg` show the built-in standard preferred
content expressions, for reference. This little IDE should be pretty
self-explanatory, I hope.
So, preferred content is almost its own little programming language now.
Except I was careful to not allow recursion. ;)