Add ignore option to ignore branch when getting file metadata