Skip to content

Commit search using files does not work as expected when file is in a multi-level directory #3086

@jkelroy

Description

@jkelroy

Description

When a file is in a multi-level directory, the commit search on the commit graph will not always return the expected commits when searching by file.

  1. Add a file to a multi-level directory i.e. ~\example\directory\folder\file.tst and commit
  2. Open the commit graph and attempt to search for this file using file:file.tst

Screenshot 2024-01-04 at 12 12 25 PM
Screenshot 2024-01-04 at 12 12 15 PM

If this file exists in a single-level directory, the commit is returned. Also, if you use File:file.tst instead, the commit is returned as expected.

Screenshot 2024-01-04 at 12 12 43 PM

GitLens Version

14.6.1

VS Code Version

Version: 1.85.1
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:16.874Z (3 wks ago)
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.3.0

Git Version

git version 2.41.0

Logs, Screenshots, Screen Captures, etc

No response

Metadata

Metadata

Assignees

Labels

support-triagedSupport has reviewed, verified, or reproduced thisverified ✔Verified

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions