[FEATURE] Add "ignore whitespace" option in diff #6572

Closed
opened 2025-11-02 07:00:00 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @dusatvoj on GitHub (Dec 22, 2020).

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

Description

Ignore whitespace option in diff like in bitbucket, etc.

Screenshots

image

Originally created by @dusatvoj on GitHub (Dec 22, 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. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. 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: 1.13.0 - Operating system: any <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes (provide example URL) - [ ] No - Log gist: <!-- It really is important to provide pertinent logs --> <!-- Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems --> <!-- In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini --> ## Description `Ignore whitespace` option in diff like in bitbucket, etc. ## Screenshots ![image](https://user-images.githubusercontent.com/11560794/102930701-3f733080-449d-11eb-84f0-e37a442f9427.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@techknowlogick commented on GitHub (Dec 22, 2020):

This already exists in Gitea.

you can see it in action in this diff: https://gitea.com/gitea/theme/pulls/92/files

@techknowlogick commented on GitHub (Dec 22, 2020): This already exists in Gitea. you can see it in action in this diff: https://gitea.com/gitea/theme/pulls/92/files
Author
Owner

@dusatvoj commented on GitHub (Dec 22, 2020):

@techknowlogick Is it in stable version or dev? I can't see this feature in our self-hosted gitea 1.13.0
I've tried smth like "Click on commit in repo" ... there's no action to ignore whitespace (even on gitea.com instace 4d5fbe24b8)
Now I'm looking to our self-hosted gitea to commit view and there's no action even with whitespace only diff lines
image

@dusatvoj commented on GitHub (Dec 22, 2020): @techknowlogick Is it in stable version or dev? I can't see this feature in our self-hosted gitea `1.13.0` I've tried smth like "Click on commit in repo" ... there's no action to ignore whitespace (even on gitea.com instace https://gitea.com/gitea/theme/commit/4d5fbe24b80542109690c95ab53461c4ec6cba9e) Now I'm looking to our self-hosted gitea to commit view and there's no action even with whitespace only diff lines ![image](https://user-images.githubusercontent.com/11560794/102937159-d0500900-44a9-11eb-9bd0-229ddf591e0e.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6572