Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
meld
meld
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 172
    • Issues 172
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 5
    • Merge Requests 5
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • meldmeld
  • Issues
  • #530

Closed
Open
Opened Nov 30, 2020 by Dušan Halický@dvhx

"Files are identical" should be "You are comparing the same one file" if both files are the same file

Consider this example:

echo hello > a.txt
echo hello > b.txt
meld a.txt b.txt

Meld will show "Files are identical" which is correct. But when I do this:

meld a.txt a.txt

Meld will also show "Files are identical", which is technically correct, but I obviously made a mistake. Meld should tell in (in bright red color) that "Hey, you probably made a mistake. You are not comparing 2 files, you accidentally typed filename twice".

This is a common footgun and meld has a chance to spot it. I think it should.

There are some edge cases to consider (like absolute vs. relative path, symlinks, etc.) but I think it should be simple to implement and it would help prevent stupid mistakes.

Edited Nov 30, 2020 by Dušan Halický
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/meld#530