vi $(git grep something | cut -d: -f1 | sort -u)

I do this a lot:

vi $(git grep something | cut -d: -f1 | sort -u)
Advertisements