git diff is showing full file has changed for a single line change but only for few files in a directory

后端 未结 3 1634
轮回少年
轮回少年 2021-01-18 13:08

I have come across a strange problem in GIT. Recently our codebase has moved to GIT from SVN. So, when I have cloned the repository on my local and I am doi

3条回答
  •  滥情空心
    2021-01-18 13:16

    This is expected behavior of GitLab and there is nothing wrong in this case. See the issue( https://gitlab.com/gitlab-org/gitlab-foss/-/issues/52936). We may skip those white space changes from compression using GitLab UI. Steps to hide/ignore white space changes.

    1. Go to your merge request.
    2. Navigate to change between section.
    3. Click on the setting button, from right side of "change between section"
    4. Unchecked the option "Show whitespace changes"

    After doing this you the compare section will show only real changes. Below is the screenshot which you refer.

提交回复
热议问题