mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
only show rebasey commands on a local commit when patch building
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package gui
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/jesseduffield/gocui"
|
||||
"github.com/jesseduffield/lazygit/pkg/utils"
|
||||
)
|
||||
@ -119,3 +121,11 @@ func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gui *Gui) handleCopyPatchToClipboard() error {
|
||||
// TODO: test that this works
|
||||
|
||||
return gui.OSCommand.CopyToClipboard(
|
||||
strings.Join(gui.GitCommand.PatchManager.RenderEachFilePatch(true), "\n"),
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user