def _init_notify(self):
        self._notify_stream = LineStream()
        Notify.ptr().set_ostream_ptr(self._notify_stream, False)
This is taken from the git setup.c:is_git_directory.
dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/gui/error_message_display.py/ErrorMessageDisplay._init_notify--crossover with--dataset/ETHPy150Open douban/ellen/ellen/repo.py/is_git_dir