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 rebase.autosquash setting in Git Advanced settings panel #10123

Merged
merged 1 commit into from Aug 8, 2022

Conversation

pmiossec
Copy link
Member

@pmiossec pmiossec commented Aug 2, 2022

  • add the git setting key in the checkbox label
    (so that user could search about documentation)

Fixes #9263 (comment)

Screenshots

Before

image

After

image

Test methodology

  • Manual

Test environment(s)

  • Git Extensions 33.33.33
  • Build 3422e3618091293026d79af910f4057e263e8a52 (Dirty)
  • Git 2.35.1.windows.2 (recommended: 2.37.1 or later)
  • Microsoft Windows NT 10.0.19042.0
  • .NET 6.0.6
  • DPI 96dpi (no scaling)

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@ghost ghost assigned pmiossec Aug 2, 2022
@gerhardol
Copy link
Member

Translations must be updated...

@pmiossec pmiossec force-pushed the git_autosquash_setting branch 2 times, most recently from 370a82a to 65bb14a Compare August 3, 2022 14:10
@pmiossec
Copy link
Member Author

pmiossec commented Aug 3, 2022

Squashed + made a little more clearer using a record.
Ready to merge I think.

+ add the git setting key in the checkbox label
(so that user could search in online documentation
 or recognize more easily the setting)
foreach (GitSettingUiMapping gitSetting in _gitSettings)
{
gitSetting.MappedCheckbox.Text += $" [{gitSetting.GitSettingKey}]";
}
Copy link
Member

@RussKie RussKie Aug 4, 2022

Choose a reason for hiding this comment

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

Feels like we're inventing yet another way to bind settings. Have you looked at SettingsPageBase.AddSettingBinding(...)?

Copy link
Member

Choose a reason for hiding this comment

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

This is Git config so different from GE settings.

Copy link
Member Author

Choose a reason for hiding this comment

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

This piece of code is not to bind settings, it's just to update the checkbox label by passing the translation because to add some text (the git setting key) that should not be translated.

So it seems better for me for 2 reasons:

  • we don't change the strings already translated (so no strings to translate again)
  • string are easier to translate because the part that should not be translated is not in the string provided for translation.

And what @gerhardol say seems right also.

@RussKie RussKie added the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Aug 4, 2022
@ghost ghost removed the 📭 needs: author feedback More info/confirmation awaited from OP; issues typically get closed after 30 days of inactivity label Aug 5, 2022
@gerhardol gerhardol added this to the 4.0.0 milestone Aug 7, 2022
@gerhardol gerhardol merged commit 4de5443 into gitextensions:master Aug 8, 2022
@ghost ghost modified the milestones: 4.0.0, vNext Aug 8, 2022
gerhardol pushed a commit that referenced this pull request Aug 8, 2022
+ add the git setting key in the checkbox label
(so that user could search in online documentation
 or recognize more easily the setting)

(cherry picked from commit 4de5443)
@gerhardol gerhardol modified the milestones: vNext, 4.0.0 Aug 20, 2022
@pmiossec pmiossec deleted the git_autosquash_setting branch August 20, 2022 12:22
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.

Advanced !fixup commits no longer automatically reorder in v3.5
3 participants