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
Add rebase.autosquash
setting in Git Advanced settings panel
#10123
Conversation
GitUI/CommandsDialogs/SettingsDialog/Pages/GitConfigAdvancedSettingsPage.Designer.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/GitConfigAdvancedSettingsPage.Designer.cs
Outdated
Show resolved
Hide resolved
Translations must be updated... |
281e7c2
to
4f359c4
Compare
370a82a
to
65bb14a
Compare
Squashed + made a little more clearer using a |
65bb14a
to
6548a87
Compare
GitUI/CommandsDialogs/SettingsDialog/Pages/GitConfigAdvancedSettingsPage.Designer.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/GitConfigAdvancedSettingsPage.cs
Outdated
Show resolved
Hide resolved
6548a87
to
de508ee
Compare
+ add the git setting key in the checkbox label (so that user could search in online documentation or recognize more easily the setting)
de508ee
to
88d1584
Compare
foreach (GitSettingUiMapping gitSetting in _gitSettings) | ||
{ | ||
gitSetting.MappedCheckbox.Text += $" [{gitSetting.GitSettingKey}]"; | ||
} |
There was a problem hiding this comment.
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(...)
?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
+ 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)
(so that user could search about documentation)
Fixes #9263 (comment)
Screenshots
Before
After
Test methodology
Test environment(s)
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.