mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 04:45:47 +02:00
add new diff mode
WIP WIP WIP WIP WIP WIP WIP
This commit is contained in:
parent
33d287d2f0
commit
40fbce91ce
38 changed files with 465 additions and 136 deletions
|
@ -1021,11 +1021,6 @@ func (c *GitCommand) ResetSoft(ref string) error {
|
|||
return c.OSCommand.RunCommand("git reset --soft " + ref)
|
||||
}
|
||||
|
||||
// DiffCommits show diff between commits
|
||||
func (c *GitCommand) DiffCommits(sha1, sha2 string) (string, error) {
|
||||
return c.OSCommand.RunCommandWithOutput("git diff --color=%s --stat -p %s %s", c.colorArg(), sha1, sha2)
|
||||
}
|
||||
|
||||
// CreateFixupCommit creates a commit that fixes up a previous commit
|
||||
func (c *GitCommand) CreateFixupCommit(sha string) error {
|
||||
return c.OSCommand.RunCommand("git commit --fixup=%s", sha)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue