Custom Commit-Pane Log Formatting (Fixes #1135) #5110
+158
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the feature requested in Issue #1135: “Option to customize git log in side panel”, which asked for the commit list pane to be configurable in the same way as the main
branchLogCmd.The original issue noted that the side-pane log was fixed to
<short sha> <message>with no way to show extra details such as the author.PR Description
This PR adds a new configuration option
git.log.customPaneLogFormatwhich allows users to control exactly how each commit appears in the commit list side panel. The default preserves the existing layout ("%h %a %as %g %d %s"), ensuring backward compatibility.Why it Solves the Problem
Issue #1135 described a clear limitation:
This PR directly addresses this need by letting users define their own layout with tokens, so the following configuration is possible.
What is Included
New config option added to:
Config.mduser_config.goconfig.json)New flexible custom formatter
%h,%H,%s,%an,%ae,%as,%cd,%g,%d,%aUpdated test suite
%ae %s,%h %g)common.CommonBackward-compatible behavior
"%h %a %as %g %d %s"Please check if the PR fulfills these requirements
go generate ./...)