Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351723

Summary: merge ignores --no-ff option
Product: [Technology] EGit Reporter: Brad Cupit <bradcupit>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: angvoz.dev, matthias.sohn, remy.suen
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Brad Cupit CLA 2011-07-11 11:01:28 EDT
Build Identifier: 20110615-0604

in $USER_HOME/.gitconfig I have

[branch "master"]
    mergeoptions = --no-ff

however, when egit merges a topic branch into master I get a fast forward merge

workaround is to reset master to last-commit-not-on-topic-branch, then merge via command line

Reproducible: Always

Steps to Reproduce:
1. in $USER_HOME/.gitconfig set
[branch "master"]
    mergeoptions = --no-ff
2. create and checkout topic branch
3. make changes
4. commit to topic branch
5. checkout master
6. in egit, merge topic branch into master (in Package Explorer, right click on project -> Team -> Merge... -> select topic branch)
7. result is fast forward, even though .gitconfig says --no-ff
Comment 1 Brad Cupit CLA 2011-07-11 11:08:56 EDT
this also happens when I merge from the History view (if master is the currently checked out branch, right click on the topic branch -> Merge)
Comment 2 Matthias Sohn CLA 2011-08-10 07:56:17 EDT
looks like a missing feature
Comment 3 Remy Suen CLA 2011-09-03 09:13:47 EDT

*** This bug has been marked as a duplicate of bug 336933 ***