ginatrapani/todo.txt-cli — pull request #75 by inkarkat (2012-01-26 15:36:27+00:00)
Title: Split up _list() and get rid of $TMP_FILE and cleanup(). 

This is a refactoring and optimization enabled by the gradual obsolescence of the use of TMP_FILE. By taking a stab at the overly long _list(), and extracting _format() out of it, the listall action can be rewritten to use a pipe instead of TMP_FILE. With the last use gone, there's no need for the check and cleanup of TMP_FILE, which should speed up the script execution a tiny bit.