Jump to content

How to hide identical files?


Lekret

Recommended Posts

I set changes comparison method to "Ignore EOLs".

Most changes are now marked with "Files are identical", but they are still shown in "Pending Changes" with status "Changed".

Is there a way to hide files if they are practically identical by comparison method?

Refreshing and restarting didn't help.

The problem occurs in PlasticSCM client, Unity and Rider. All of them show files which are different only by EOL.

Choosing "Ignore EOL and Whitespaces" makes no difference, files are still shown.

To reproduce this simply copy some folder or files from one project to another. I created child branch and copied a couple of folders from git project to new plastic project and expected to see the exact changes I made in my git branch, but it recognized all files as Changed yet identical by comparison method Ignore EOL.

I see this is a very old problem and topics exist for more than a year ago. Can you fix this please? This is paid product. I can't do my work, because need to deal with 1000+ identical files. 

изображение_2023-02-09_144533139.png

Link to comment
Share on other sites

It might be better to tackle the cause of these EOF inconsistencies, instead of trying to hide the symptoms.

What I mean is, make sure that everyone working on the project uses the same EOF settings when editing files (namely "Windows"/"DOS" =CRLF vs. "Unix"=LF). These are usually settings in your source file editor (such as Rider), and note that there is also a Unity Editor setting for this (see image).

So, agree on an EOF setting ("Windows" or "Unix"), make sure each team member's Unity Editor is configured accordingly (it's a local setting, not stored in the repository), and also make sure that the source file editor every team member is using adheres to that choice.

Then, to fix your current situation for already existing files, use/find a tool that can convert one EOF type to another (most text editors should be able to do this - but usually only on a file-by-file basis, which can be tedious. However, there are CLI tools like dos2unix and unix2dos out there which can help), convert all your files, and commit these changes. Every other team member should then discard his local changes that consist only on EOF differences, then update to the newly committed version.

EOF_Settings.png

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

If you've got identical files cluttering up your computer, there are a few ways you can tidy things up and keep them out of sight without deleting them altogether.

1. Renaming Files

Renaming identical files can be a quick fix to differentiate them. Here's how:

  • Right-click on the file.
  • Select "Rename."
  • Give the file a unique name that helps you distinguish it from others.

2. Creating Subfolders

Organizing identical files into subfolders can help streamline your storage. Here's how to do it:

  • Create a new folder.
  • Drag and drop identical files into the new folder.
  • Name the folder appropriately to reflect the contents.

3. Utilizing File Attributes

You can use file attributes to mark identical files. Here's how:

  • Right-click on the file.
  • Select "Properties."
  • Go to the "Details" tab.
  • Add descriptive tags or comments to differentiate files.

4. Using Hidden File Attributes

You can hide identical files from view while keeping them accessible. Here's how:

  • Right-click on the file.
  • Select "Properties."
  • Check the box next to "Hidden" under the General tab.
  • Click "Apply" and then "OK."

5. Employing Third-Party Software

There are specialized software programs available for managing identical files efficiently. Some popular options include:

  • Duplicate File Finder
  • Easy Duplicate Finder
  • CCleaner

These tools can help you locate and manage duplicate files effectively.

By implementing these strategies, you can keep identical files organized and out of sight, making it easier to navigate your computer files.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...