Skip to content

GitLab

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

Closed
Open
Created 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
Time tracking