I'm creating a workflow for locked, older branches whereby a select few developers must approve changes made by the team. I plan to limit branch permissions & merge via pull requests (e.g. developer copies the old branch to a new branch, commits on the new branch, issues a pull request to merge the new & old branches and deletes the new branch). My change showed up correctly, but so did a whole lot more:
After the pull request was merged, the commit tab showed many more commits than the one I did. They all look to be those that already existed on the old branch. 14 JIRA issues were also associated with the merge as their IDs were referenced in the old commits. What just happened?
Some investigation reveals:
- The diff tab only shows the file I changed
- The old branch has many JIRA issues on it, but the Overview tab only lists 14.
- Fisheye shows the Merge pull request as having 15,179 commits - probably the number of commits on the original branch.
- Fisheye's Commit Graph shows two parallel branches which merge at my pull request. Commit descriptions are also duplicated.
My conclusion is Stash treated this as two independent branches and completely merged them together. How should I structure this so it doesn't happen on production? I suspect it must have something to do with how I create the new branch...
Thanks for any help!
Scott