-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat(CheckListSettingsPage): Improve display of git version #12264
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
Conversation
good change but do not work for me |
|
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.
Pull Request Overview
This pull request improves the display and detection of the Git version in the ChecklistSettingsPage by distinguishing between the native and used (WSL) Git versions. It also simplifies Git version retrieval by identifying it solely using the GitExecutable.Command.
- Changed ChecklistSettingsPage to compute and display a combined Git version string.
- Updated GitVersion to use a simplified API with nullable annotations.
- Adjusted GitModule to remove unused parameters related to WSL.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/app/GitUI/CommandsDialogs/SettingsDialog/Pages/ChecklistSettingsPage.cs | Updates UI logic to display native and used Git versions appropriately. |
src/app/GitCommands/Git/GitVersion.cs | Refactors the Git version retrieval method with nullable enable and cleaner caching logic. |
src/app/GitCommands/Git/GitModule.cs | Removes the redundant _wslDistro parameter to align with the simplified GitVersion API. |
and apply code style Refs: gitextensions#12264
Finally, I have realized that the |
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.
Thanks!
= gitExecutable is null ? AppSettings.GitCommand | ||
: string.IsNullOrWhiteSpace(gitExecutable.PrefixArguments) ? gitExecutable.Command | ||
: $"{gitExecutable.Command} {gitExecutable.PrefixArguments}"; |
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.
please reformat or indent
= gitExecutable is null ? AppSettings.GitCommand | |
: string.IsNullOrWhiteSpace(gitExecutable.PrefixArguments) ? gitExecutable.Command | |
: $"{gitExecutable.Command} {gitExecutable.PrefixArguments}"; | |
= gitExecutable is null | |
? AppSettings.GitCommand | |
: string.IsNullOrWhiteSpace(gitExecutable.PrefixArguments) | |
? gitExecutable.Command | |
: $"{gitExecutable.Command} {gitExecutable.PrefixArguments}"; |
by always identifying by means of gitExecutable.Command+.PrefixArguments Refs: gitextensions#12264
and apply code style Refs: gitextensions#12264
and display versions of used git (WSL) and configured native git Refs: gitextensions#12264
Addresses #12185 (comment)
Proposed changes
ChecklistSettingsPage:
GitVersion:
GitVersion
by means ofgitExecutable.Command + gitExecutable.PrefixArguments
IExecutable:
PrefixArguments
Screenshots
Before
After
Test methodology
Please do not squash merge
✒️ I contribute this code under The Developer Certificate of Origin.