It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stash git whitespace & Line endings

Patrick Adrichem May 12, 2013

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
Answer accepted
Charles O'Farrell May 12, 2013

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

0 votes
Dennis Campos Dec 15, 2013

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!
Dennis Campos Dec 16, 2013

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!

0 votes
Kev Chan Dec 18, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,067 views 1 20
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you