feat: add --stat output to commit view as 0th display format#2449
Draft
tonystr wants to merge 1 commit intotpope:masterfrom
Draft
feat: add --stat output to commit view as 0th display format#2449tonystr wants to merge 1 commit intotpope:masterfrom
tonystr wants to merge 1 commit intotpope:masterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Solves #2448
This PR adds a third fugitive_display_format to which simply includes
--statoutput in the commit message. Being the 0th display format (handles in the else, rather than an elseif), means that this format will be the default format shown when viewing commits (:Gedit <rev>). See appendix[0] for an image of how this looks.PROBLEMS
--statoutput is not highlighted by the git parser for treesitter. This would require a PR to the treesitter git parser to solve.--statoutput or to never see--statoutput. This should probably instead be handled by a config option.APPENDIX

[0] - Fugitive
:Geditwith--staton the left, compared with Neogit's:NeogitCommiton the right