* if output is filtered using file arguments, only print history entries where the final destination file exists

This commit is contained in:
Reinhard Pointner 2012-11-12 14:30:29 +00:00
parent d6b8c187a0
commit 3dc145b55e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ def template = new groovy.text.GStringTemplateEngine().createTemplate(format)
// use args to list history only for the given folders if desired
def accept(from, to) {
args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) }
args.empty ? true : args.find{ to.absolutePath.startsWith(it.absolutePath) } && to.exists()
}