1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

Expose {{.SelectedCommitRange}} to custom commands

It has fields .To and .From (the hashes of the last and the first selected
commits, respectively), and it is useful for creating git commands that act on a
range of commits.
This commit is contained in:
Stefan Haller
2024-08-28 21:31:06 +02:00
parent d768327814
commit 4baf008ac7
4 changed files with 72 additions and 0 deletions

View File

@ -139,6 +139,7 @@ var tests = []*components.IntegrationTest{
custom_commands.MultipleContexts,
custom_commands.MultiplePrompts,
custom_commands.SelectedCommit,
custom_commands.SelectedCommitRange,
custom_commands.SelectedPath,
custom_commands.ShowOutputInPanel,
custom_commands.SuggestionsCommand,