forum/ preferred content: lastpresentgit-annexhttp://git-annex.branchable.com/forum/_preferred_content__58___lastpresent/git-annexikiwiki2016-03-12T16:58:09Zcomment 1http://git-annex.branchable.com/forum/_preferred_content__58___lastpresent/comment_1_7610cd866b256d36646b642eb5f8cae5/joeyh.name2016-03-12T16:58:09Z2013-11-15T20:39:43Z
<p>The idea seems to be to match files that have been deleted.</p>
<p>I don't see how that could work; preferred content expressions are always matched against files in the working tree.</p>
<p>Even if it were doable, it would be quite expensive if every preferred content query involved a <code>git log</code>...</p>
<p>What are you trying to achieve with this?</p>
comment 2http://git-annex.branchable.com/forum/_preferred_content__58___lastpresent/comment_2_d25666a173b78213d583f029fd166d06/Paul Léo2016-03-12T16:58:09Z2013-11-16T13:12:35Z
<p>The aim is to be able to have some semi-automatic mode (using "git-annex wanted . (lastpresent)"), where file paths which you "git-annex get" one time always get updated to the latest version.</p>
<p>Or, you could also use some variant of it the other way round (using "git-annex wanted . (notlastpresent)"): all files would be present by default, but paths which you "git-annex drop"ed once wouldn't become present again.</p>