Hacker News new | ask | show | jobs
by emidln 4784 days ago
I think it's along the lines of::

    cut -d' ' -F 4
That said, I'd probably try this:

    git ls-tree HEAD -r | sed 's/[[:space:]]\+/ /g' | cut -d' ' -f 4
Edit: Apparently there is a shorter way of that sed sequence, which brings us to:

    git ls-tree HEAD -r | tr -s ' ' | cut -d' ' -f 4
1 comments

Yes, there is more than one way to do it:-) Had I read the git ls-tree manpage more patiently, I should have wrote:

    git ls-tree HEAD -r --name-only