Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-12914

Ability to choose between "plain merge" or "git merge --no-ff"

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      Hi,
      I noted that Bitbucket UI allow only a "plain merge" instead of "git merge --no-ff".

      As I know, the --no-ff flag causes the merge to always create a new commit object, even if the merge could be performed with a fast-forward. This avoids losing information about the historical existence of a feature branch and groups together all commits that together added the feature.

      With a "plain merge", it is impossible to see from the Git history which of the commit objects together have implemented a feature—you would have to manually read all the log messages. Reverting a whole feature (i.e. a group of commits), is a true headache in the current situation, whereas it is easily done if the "--no-ff" flag was used.

      Yes, it will create a few more (empty) commit objects, but the gain is much bigger than the cost.

      Please, can you consdier to add ability for users to toggle merge type in BitBucket?

      I merged some days ago my Develop branch to Master and with BitBucket merge I now find all previous develop commits into merge, while I thought to find only a final big commits on master.

      Thank you

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dd0c938af01f ldetomi
              Votes:
              6 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: