1. 01 Feb, 2017 4 commits
    • Mike Greiling's avatar
    • Sean McGivern's avatar
      Allow squashing MR into a single commit · 43f9f083
      Sean McGivern authored
      1. Clone the repo to a temp directory.
      2. Apply the MR as a patch.
      3. Use `git commit -C` to copy the commit metadata from the HEAD commit
         of the source branch, and manually add the merging user as the
         committer.
      4. Push back to a randomly-generated branch name.
      5. Immediately delete that branch, so that it does not appear in the
         branch list, trigger CI builds, etc.
      6. Return the SHA of the squashed commit we've just pushed to the
         MergeService.
      7. In the MergeService, allow an arbitrary source to be used, and set
         that to either the source branch (if there is no squashing) or the
         squashed SHA.
      43f9f083
    • Sean McGivern's avatar
      Change Repository#merge interface for squashing · 28b462c7
      Sean McGivern authored
      When squashing, we may want to merge a different commit than the MR's
      HEAD commit into the target branch. This interface matches the existing
      `Repository#ff_merge` method, and allows us to pick an arbitrary commit
      to merge.
      28b462c7
    • Sean McGivern's avatar
      Add squash option to MR UI · 59577507
      Sean McGivern authored
      59577507
  2. 31 Jan, 2017 3 commits
  3. 30 Jan, 2017 3 commits
  4. 29 Jan, 2017 2 commits
  5. 27 Jan, 2017 28 commits