problem: empty diff is shown as "Diff content is not available" #12449

Open
opened 2026-05-07 12:32:20 +02:00 by mahlzahn · 0 comments
mahlzahn commented 2026-05-07 12:32:20 +02:00 (Migrated from codeberg.org)

Does your problem still exist on the latest Forgejo version?

Yes, the problem still exists (tested on a next instance)

About your usage of Forgejo

Codeberg user, Forgejo contributor …

Problem description

Following string is shown when a diff is empty
codeberg.org/forgejo/forgejo@69cf1f3333/options/locale/locale_en-US.ini (L2583) determined by codeberg.org/forgejo/forgejo@69cf1f3333/templates/repo/diff/box.tmpl (L102-103) and codeberg.org/forgejo/forgejo@69cf1f3333/routers/web/repo/commit.go (L403)

Do you agree that it should be changed to something like Diff is empty instead?

Are there cases where Diff content is not available is indeed more appropriate?

Potential workarounds

No response

Forgejo Version

15, 16 …

Other details about your environment (software names and versions)

Codeberg

Solutions

Accepted solutions to address this problem will go here

### Does your problem still exist on the latest Forgejo version? Yes, the problem still exists (tested on a next instance) ### About your usage of Forgejo Codeberg user, Forgejo contributor … ### Problem description Following string is shown when a diff is empty https://codeberg.org/forgejo/forgejo/src/commit/69cf1f3333cdb420dca6d07d74b5e0269c428057/options/locale/locale_en-US.ini#L2583 determined by https://codeberg.org/forgejo/forgejo/src/commit/69cf1f3333cdb420dca6d07d74b5e0269c428057/templates/repo/diff/box.tmpl#L102-103 and https://codeberg.org/forgejo/forgejo/src/commit/69cf1f3333cdb420dca6d07d74b5e0269c428057/routers/web/repo/commit.go#L403 Do you agree that it should be changed to something like `Diff is empty` instead? Are there cases where `Diff content is not available` is indeed more appropriate? ### Potential workarounds _No response_ ### Forgejo Version 15, 16 … ### Other details about your environment (software names and versions) Codeberg ### Solutions *Accepted solutions to address this problem will go here*
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sleepy/forgejo#12449
No description provided.