-
Suggestion
-
Resolution: Duplicate
-
None
-
None
-
None
We would like to be able to configure stash to control the way diff handles whitespace. At the git command level, git diff has options like -b and -w to ignore whitespaces when diff-ing files.
The use case which makes it a high priority for us is that different instances of IDE editors like Eclipse have differing default settings for tab/space conversion and for the number of spaces used for code indentation. Hence, when a pull request and its associated diffs are created in stash, we often end up with unwanted diff lines which only differ in whitespace. Thus, the utility of stash for conducting code reviews as a part of the pull request mechanism is drastically diminished for us.
To replicate the problem, create a branch with a test file that only differs from the develop branch in whitespace.
- duplicates
-
BSERV-2816 Provide configurable whitespace settings on the diff view
- Closed