Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2951

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      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.

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

                Created:
                Updated:
                Resolved: