Git Difference Not Available #6080

Closed
opened 2025-11-02 06:44:32 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @w-firm on GitHub (Oct 2, 2020).

  • Gitea version (or commit ref):
  • Git version:
  • Operating system:
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

DISCLAIMER: This issue has been rephrased by @kreyren hoping to make it more understandable as the issuer is not native english speaker

I have a website where i want to show a difference of two files which doesn't seem to be possible to do through Gitea API.

Steps to reproduce

  1. Create a new repository with any non-empty file
  2. Change the file content and push it
  3. Try to use GiteaAPI to return a usable call that would allow to show the difference of two files on a website

Screenshots

Originally created by @w-firm on GitHub (Oct 2, 2020). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): - Git version: - Operating system: - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description DISCLAIMER: This issue has been rephrased by @kreyren hoping to make it more understandable as the issuer is not native english speaker I have a website where i want to show a difference of two files which doesn't seem to be possible to do through Gitea API. ### Steps to reproduce 1. Create a new repository with any non-empty file 2. Change the file content and push it 3. Try to use GiteaAPI to return a usable call that would allow to show the difference of two files on a website ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the modifies/api label 2025-11-02 06:44:32 -06:00
Author
Owner

@w-firm commented on GitHub (Oct 2, 2020):

also we have installed gitea in our server so will it affect when you migrate your stuff from github to gitea.com?

@w-firm commented on GitHub (Oct 2, 2020): also we have installed gitea in our server so will it affect when you migrate your stuff from github to gitea.com?
Author
Owner

@Kreyren commented on GitHub (Oct 2, 2020):

To clarify the end-user was asking on the discord server, but was unable to get the answer that they were looking for so he asked me if i can go on call with him to explain the issue and after the call i suggested filing an issue in case i am providing an inaccurate information and did my best to rephrase the original issue to make it more understandable.

It seems that GiteaAPI is unable to show file difference when the file changes.

I've suggested:
https://gitea.com/api/swagger#/repository/repoGetAllCommits
https://gitea.com/api/swagger#/repository/repoGetSingleCommit

which doesn't seem to resolve the issue for the end-user.

Hope it helps ^-^

EDIT: I've informed the end-user that i am not part of gitea team and provided the information to the best of my ability.

@Kreyren commented on GitHub (Oct 2, 2020): To clarify the end-user was asking on the discord server, but was unable to get the answer that they were looking for so he asked me if i can go on call with him to explain the issue and after the call i suggested filing an issue in case i am providing an inaccurate information and did my best to rephrase the original issue to make it more understandable. It seems that GiteaAPI is unable to show file difference when the file changes. I've suggested: https://gitea.com/api/swagger#/repository/repoGetAllCommits https://gitea.com/api/swagger#/repository/repoGetSingleCommit which doesn't seem to resolve the issue for the end-user. Hope it helps ^-^ EDIT: I've informed the end-user that i am not part of gitea team and provided the information to the best of my ability.
Author
Owner

@6543 commented on GitHub (Oct 2, 2020):

Related: #10921

I'll have a look at it :)

@6543 commented on GitHub (Oct 2, 2020): Related: #10921 I'll have a look at it :)
Author
Owner

@yardenshoham commented on GitHub (Nov 8, 2022):

Should this be closed as https://github.com/go-gitea/gitea/pull/17095 is merged?

@yardenshoham commented on GitHub (Nov 8, 2022): Should this be closed as https://github.com/go-gitea/gitea/pull/17095 is merged?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6080