Set ignore whitespace via configuration #6272

Closed
opened 2025-11-02 06:50:39 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @arpan34 on GitHub (Nov 8, 2020).

Hi gitea team!

Was wondering if it is possible to set "ignore whitespace" to true via the configuration file/CLI. I know this can be done via the UI.

Thanks in advance!

Originally created by @arpan34 on GitHub (Nov 8, 2020). Hi gitea team! Was wondering if it is possible to set "ignore whitespace" to true via the configuration file/CLI. I know this can be done via the UI. Thanks in advance!
Author
Owner

@mrsdizzie commented on GitHub (Nov 9, 2020):

There isn't a way to set that -- it isn't a setting that is saved anywhere just a query passed to the URL.

@mrsdizzie commented on GitHub (Nov 9, 2020): There isn't a way to set that -- it isn't a setting that is saved anywhere just a query passed to the URL.
Author
Owner

@arpan34 commented on GitHub (Nov 9, 2020):

thanks @mrsdizzie !

Is it possible to set this flag when creating a pull request via API?

@arpan34 commented on GitHub (Nov 9, 2020): thanks @mrsdizzie ! Is it possible to set this flag when creating a pull request via API?
Author
Owner

@mrsdizzie commented on GitHub (Nov 9, 2020):

It isn't a flag, its just a query on the URL when viewing a diff. Ex:

https://try.gitea.io/mrsdizzie/tea/pulls/26/files?style=unified&whitespace=ignore-all

It isn't stored anywhere -- just clicking the "whitespace->ignore all whitespace" button on the files tab adds that query to the URL and reloads the page. There is no saved state for it anywhere.

@mrsdizzie commented on GitHub (Nov 9, 2020): It isn't a flag, its just a query on the URL when viewing a diff. Ex: https://try.gitea.io/mrsdizzie/tea/pulls/26/files?style=unified&whitespace=ignore-all It isn't stored anywhere -- just clicking the "whitespace->ignore all whitespace" button on the files tab adds that query to the URL and reloads the page. There is no saved state for it anywhere.
Author
Owner

@arpan34 commented on GitHub (Nov 9, 2020):

Thanks again @mrsdizzie for the quick help! :)

@arpan34 commented on GitHub (Nov 9, 2020): Thanks again @mrsdizzie for the quick help! :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6272