Stash configuration should allow the setting of low-level whitespace-related command options for git diff

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Duplicate
    • None
    • Component/s: 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.

            Assignee:
            Unassigned
            Reporter:
            K Bapa Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: