Decode output of 'git ls-files'

Fixes #1273.

If this is the correct way of parsing output from git, shouldn't we do this in the general case, instead of special casing this one command?