added --list support

For more details please check the dev mailing list and the [JIRA issue](https://issues.apache.org/jira/browse/CB-8168)
You should not be removing the new line at end of file (i.e. if you see this red null on a green background at the end, your patch/commit/file is bad, open the file in your text editor, add a blank line at the end of the file, and save it, then commit --amend...