Moved Image gets displayed as changed #7724

Open
opened 2025-11-02 07:34:38 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @delvh on GitHub (Aug 20, 2021).

Description

Currently, whenever an image is moved, it gets displayed as changed (see screenshot below).
It should however only be displayed as changed when it actually was changed, and not when it was simply moved.
Otherwise, it should only be marked as a moved file as it already is.
This behavior is confusing because that way it seems that the image changed somewhere instead of simply being moved.

Screenshots

image
The only thing I did here was move the image to a new location.

Originally created by @delvh on GitHub (Aug 20, 2021). - Gitea version (or commit ref): All up to 1.16.0+dev-125-g03937891e - Can you reproduce the bug at https://try.gitea.io: - here: https://try.gitea.io/delvh/kanban-test/pulls/18/files ## Description Currently, whenever an image is moved, it gets displayed as changed (see screenshot below). It should however only be displayed as changed when it actually was changed, and not when it was simply moved. Otherwise, it should only be marked as a moved file as it already is. This behavior is confusing because that way it seems that the image changed somewhere instead of simply being moved. ## Screenshots ![image](https://user-images.githubusercontent.com/51889757/130234096-de6c02ec-58f6-46be-a54e-f74901dd8762.png) The only thing I did here was move the image to a new location.
GiteaMirror added the type/enhancement label 2025-11-02 07:34:38 -06:00
Author
Owner

@delvh commented on GitHub (Aug 20, 2021):

@lunny I would say that's a bug, not an enhancement.
But I can somewhat see why you chose enhancement.

@delvh commented on GitHub (Aug 20, 2021): @lunny I would say that's a bug, not an enhancement. But I can somewhat see why you chose enhancement.
Author
Owner

@lunny commented on GitHub (Aug 20, 2021):

@delvh sometimes a rename will also have some slight changes in git. You could say that's a bug. Because we need to know the rename percent if it's 100% to display different UI.

@lunny commented on GitHub (Aug 20, 2021): @delvh sometimes a rename will also have some slight changes in git. You could say that's a bug. Because we need to know the rename percent if it's 100% to display different UI.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7724