repository: add searching git repository function