feature: New option to ignore casing changes, ignore casing and ignore whitespace button also for unstaged changes file list and commit details#2411
Conversation
… and ignore whitespace buttons are now available in the unstaged changes file list and the commit changes in the commit details in the commit history, so you can more easily diff very large merges etc.
|
NOTE: Recently merged PR #2436 moves the ignore-whitespace button to the right (to avoid it jumping around when toggled, if the Diff is all-whitespace). |
|
I don't like this pull request.
|
That's definitely an issue! 😅
To be fair, I think the suggested feature could be viewed as yet another way to filter the changes, similar to the search-filtering that's already there. The same prompt for confirmation before committing when filters are active would apply here too. However, these filters should ideally work on already available info about the type/name/path of the item-change, and not on the contents of the Diff itself, which would rule out the proposed filters - unless there's some Git option which can be used to VERY QUICKLY determine files which yield no diff-lines given a set of specified ignore-options. Leaving these
|
I implemented a new option to ignore casing changes. And added this button and the one to ignore whitespace in the unstaged changes file list and the commit changes in the commit details in the commit history. This gives you more flexibility when checking very large merges for example, when some files only have minor spacing or casing changes (depending on your programming language, the casing can be irrelevant. These features help us to save time in our daily workflow, maybe you have a use for it, too. I also added the translation to all supported languages. I used Claude Opus 4.8 and didn't do everything by hand.
Ignore casing:
Improved "ignore whitespace" to also ignore added/removed empty lines:
New option to hide files with only whitespace or casing changes in changes view:
New option to hide files with only whitespace or casing changes in commit details: