Skip to content

Inconsistent choice for shown file path #925

@AsumFace

Description

@AsumFace

Hi!

When diffing two files without file extension, the first one is chosen to label the hunk. However, when the files have got an extension, the second one is chosen instead. In the following screenshot, observe that in the first invocation a is chosen, in the second b.txt.
In general, perhaps difft should detect a rename in this case and display both the left and right path, instead of picking a single one?

Image

a.txt
b.txt

difft --version

Difftastic 0.67.0

Toolchain: 1.92.0
System:    linux x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions