git grep コマンドの --files-with-matches オプションを使うと、結果をファイル名だけにすることができます。
git grep
--files-with-matches
git grep --files-with-matches "hoge"