Stash git whitespace & Line endings

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?

5 answers

1 accepted

This widget could not be displayed.

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

This widget could not be displayed.
Issac Gerges Atlassian Team Oct 20, 2013

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

This widget could not be displayed.

Hi, I'm looking for something similar. Instead of whitespaces, is there any way enable/disable case-sensitivity of diffs?

Adam Ahmed Atlassian Team Dec 15, 2013
Sorry Dennis, you can't. We farm out to Git for the diff so we're somewhat limited by what it offers. We prefer this anyway as it means what you see in Stash matches what Git shows you on the command line - no surprises. If this is really important to you, I'd suggest opening a feature request and describing your use case in a bit more detail. However just a warning - this doesn't sound like the sort of thing we'd be supporting any time soon. Cheers!

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!

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

242 views 14 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you