'deleted file mode' line handling

Added this since I needed this for my current project; should be useful for others as well.