mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-06 22:33:07 +02:00
Add test that demonstrates problem with showing filtered history of file with renames
The test shows that selecting a commit before the rename shows an empty diff, and selecting the rename itself shows an added file rather than a rename.
This commit is contained in:
@ -235,6 +235,10 @@ func (self *Shell) DeleteFileAndAdd(fileName string) *Shell {
|
||||
GitAdd(fileName)
|
||||
}
|
||||
|
||||
func (self *Shell) RenameFileInGit(oldName string, newName string) *Shell {
|
||||
return self.RunCommand([]string{"git", "mv", oldName, newName})
|
||||
}
|
||||
|
||||
// creates commits 01, 02, 03, ..., n with a new file in each
|
||||
// The reason for padding with zeroes is so that it's easier to do string
|
||||
// matches on the commit messages when there are many of them
|
||||
|
Reference in New Issue
Block a user