It would be nice if the stash diff viewer would support "ignore line endings & whitespaces" in the diff.
Some of our nooby programmers have had windows endings and since we all convert them now when we open them it tells us the whole file changed instead of the real changes.
Is there such an option that i just cannot find? or a plugin?
Hi Patrick,
If you're running Stash 2.4 you can add '?w=1' to the URL to ignore whitespace. The original feature request:
https://jira.atlassian.com/browse/STASH-2816
Cheers,
Charles
Hey Patrick,
As of Stash 2.8 this option is located in the diff options menu (in the upper right hand corner of the diff, the '...' icon).
Thanks,
Issac
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For clarity, the URL w=1 parameter should be added like this:
http://your-git-server/projects/someProject/repos/yyy/pull-requests/54/diff<strong< a="">>?w=1#project/src/main/java/com/company/A.java
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am using Stash 2.7.
I tried Charles adivice of adding ?w=1 but that didnt work in 2.7. It actually show the diff of some other completely unrelated file.
Can someone shed some light?
Thanks,
Kev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I'm looking for something similar. Instead of whitespaces, is there any way enable/disable case-sensitivity of diffs?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the answer, Adam. I can see the point there. It's not that important, just a question to know if there is any way to do that. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.