On Fri, Apr 14, 2017 at 9:33 AM, Jacob Keller <jacob.keller@xxxxxxxxx> wrote: > > Never mind. git ls-files doesn't support showing files for a specific > ancient history. (I guess you'd use ls-tree for that?). I'm guessing > we want to run in the actual work-tree for ls-files here. > > Does "is_submodule_initialized()" going to ensure that we only operate > on a submodule that's currently checked out? I think for that we rather want to use is_submodule_populated. And I think it would make sense as well to check for that instead of the initialized state. Thanks, Stefan