Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "--rebase-merges" for newest version of git #6920

Merged
merged 1 commit into from
Jul 17, 2019

Conversation

pmiossec
Copy link
Member

now that we recommend v2.22 (#6769) that deprecate "--preserve-merges"

See:

Test methodology

  • Manual (not heavily)
  • Updated unit tests

Test environment(s)

  • Git Extensions 3.2.0
  • Build 8ee3620d3fa4b960b24240cb5ccf1822c01a33f7
  • Git 2.20.1.windows.1 (recommended: 2.22.0 or later)
  • Microsoft Windows NT 10.0.17134.0
  • .NET Framework 4.7.3416.0
  • DPI 96dpi (no scaling)

@ghost ghost assigned pmiossec Jul 13, 2019
@codecov
Copy link

codecov bot commented Jul 13, 2019

Codecov Report

Merging #6920 into master will decrease coverage by 0.05%.
The diff coverage is 40%.

@@            Coverage Diff             @@
##           master    #6920      +/-   ##
==========================================
- Coverage   47.69%   47.64%   -0.06%     
==========================================
  Files         736      736              
  Lines       54054    54056       +2     
  Branches     7086     7103      +17     
==========================================
- Hits        25782    25754      -28     
- Misses      26877    26883       +6     
- Partials     1395     1419      +24
Flag Coverage Δ
#production 36.78% <66.66%> (-0.06%) ⬇️
#tests 97.62% <0%> (-0.05%) ⬇️

Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Few minor comments

@@ -605,7 +605,7 @@ public void RebaseCmd()
"-c rebase.autoSquash=false rebase -i --no-autosquash \"branch\"",
GitCommandHelpers.RebaseCmd("branch", interactive: true, preserveMerges: false, autosquash: false, autoStash: false).Arguments);
Assert.AreEqual(
"-c rebase.autoSquash=false rebase --preserve-merges \"branch\"",
"-c rebase.autoSquash=false rebase --rebase-merges \"branch\"",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests should pivot on git version.
So if someone runs a codebase against an older version of git (like me while testing) they shouldn't get a test failure.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: We have a few tests for features not in the oldest supported version, but those tests do not use Git binaries (only argument tests).

@@ -617,7 +617,7 @@ public void RebaseCmd()
"-c rebase.autoSquash=false rebase -i --autosquash \"branch\"",
GitCommandHelpers.RebaseCmd("branch", interactive: true, preserveMerges: false, autosquash: true, autoStash: false).Arguments);
Assert.AreEqual(
"-c rebase.autoSquash=false rebase -i --autosquash --preserve-merges --autostash \"branch\"",
"-c rebase.autoSquash=false rebase -i --autosquash --rebase-merges --autostash \"branch\"",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

appveyor.yml Outdated
@@ -1,6 +1,6 @@
version: 3.2.0.{build}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's submit this change separately, as it is orthogonal to the main change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was a last test (before going to bed ;) ) to gather information, not planned to be merged...

@pmiossec
Copy link
Member Author

done.

@gerhardol
Copy link
Member

We could include this in 3.2

@RussKie RussKie merged commit 138b8c9 into gitextensions:master Jul 17, 2019
@RussKie
Copy link
Member

RussKie commented Jul 17, 2019

Thank you

@RussKie RussKie added this to the 3.2.0 milestone Jul 17, 2019
@pmiossec pmiossec deleted the support_rebase_merges branch July 18, 2019 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants