-
Type:
Suggestion
-
Resolution: Fixed
-
Component/s: Pull Requests
When viewing the Branch Diff for a Pull Request the Branch Diff sometimes shows all the differences between the two branches, not just the changes from the commits in the to-be-merge branch.
This doesn't happen every time, and when I attempted to create a simple example the problem didn't occur. However I have seen it a number of times when I have a branch that diverged quite some time ago from the main branch.
Our main branch is named "develop" (following the Git Flow model) and a feature branch may look like "feature/my_feature". In the Pull Request "feature/my_feature" is to be merged into "develop" which had 20+ commits.
The feature branch only had changes to a few files, all named "Makefile", but the Branch Diff shows every file changed over time in the "develop" branch and the diff colors indicate that the changes made to "develop" will be reversed (to the same status as the unchanged file in the feature branch). (stash13-a.jpg attached)
The commit tab (stash13-b.jpg attached) shows only the few changes to files named "Makefile". A manual merge of the two branches (external to Stash) only changes the committed changes in the feature branch and do NOT make the changes that the Branch Diff indicates will be made.
- mentioned in
-
Wiki Page Loading...