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

1 vote
Accepted answer

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

5 votes
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

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!

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

429 views 6 9
Read article

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