Directory Filtering using a Path View Filter

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
martinm
Junior Member
Posts: 10
Joined: Fri Jul 22, 2011 12:03 pm

Directory Filtering using a Path View Filter

Post by martinm »

I've been trying to familiarize myself with the directory filtering improvements in ExamDiff Pro 15.0.

For this I used two directories with locally cloned Git repositories.

When comparing the two directories, the directory comparison filter :*\.git\* worked as expected. The files in the .git directory are excluded from the comparison and are not shown in the results view.

I then tried to filter out the same .git directory (with the directory comparison filter turned off) in the results view using a path view filter. The include patterns were set to the default value of *. I tried using the following patterns as exclude patterns: *\.git\* or .git\* or .git\. All three exclude patterns had no effect. Using *.sql as exclude patterns to exclude files with the SQL extension, however, worked as expected.

Am I doing something wrong here? Or is it not possible to filter directories using the path view filter from the results view?
User avatar
psguru
Site Admin
Posts: 2305
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Directory Filtering using a Path View Filter

Post by psguru »

I then tried to filter out the same .git directory (with the directory comparison filter turned off) in the results view using a path view filter. The include patterns were set to the default value of *. I tried using the following patterns as exclude patterns: *\.git\* or .git\* or .git\. All three exclude patterns had no effect. Using *.sql as exclude patterns to exclude files with the SQL extension, however, worked as expected.
I need more details on your setup. Please provide relevant screenshots.
psguru
PrestoSoft
martinm
Junior Member
Posts: 10
Joined: Fri Jul 22, 2011 12:03 pm

Re: Directory Filtering using a Path View Filter

Post by martinm »

I'll try to explain the behavior using a publicly available Git repository from GitHub and some screenshots so you can reproduce it.

First, I clone the Git repository twice into two different directories:

Code: Select all

git clone https://github.com/nigelpoulton/TheK8sBook.git TheK8sBook1
git clone https://github.com/nigelpoulton/TheK8sBook.git TheK8sBook2
I then created a new session with all options reset to default and compared the two directories. The result looks like this after switching to flat mode:
Screenshot_20241006_061641.jpg
Screenshot_20241006_061641.jpg (249.69 KiB) Viewed 3454 times
The next two screenshots show my (unsuccessful) attempt to filter out the .git directory and its contents in the results view using a path view filter:
Screenshot_20241006_061712.jpg
Screenshot_20241006_061712.jpg (248.74 KiB) Viewed 3454 times
Screenshot_20241006_061800.jpg
Screenshot_20241006_061800.jpg (244.82 KiB) Viewed 3454 times
martinm
Junior Member
Posts: 10
Joined: Fri Jul 22, 2011 12:03 pm

Re: Directory Filtering using a Path View Filter

Post by martinm »

The next two screenshots show how I was able to successfully filter out files with the YML extension from the results view by using *.yml as an exclude pattern:
Screenshot_20241006_061827.jpg
Screenshot_20241006_061827.jpg (247.33 KiB) Viewed 3454 times
Screenshot_20241006_061835.jpg
Screenshot_20241006_061835.jpg (248.74 KiB) Viewed 3454 times
Interestingly, a quick path view filter to show only the files in the .git directory seems to work:
Screenshot_20241006_061920.jpg
Screenshot_20241006_061920.jpg (248.97 KiB) Viewed 3454 times
User avatar
psguru
Site Admin
Posts: 2305
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Directory Filtering using a Path View Filter

Post by psguru »

Thank you for your detailed analysis. The fix will appear in the next build of version 15.
psguru
PrestoSoft
Post Reply