-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When Git detects a file as "copied" (e.g., copied: original.txt -> copied.txt), lazygit incorrectly displays the status with broken/truncated filenames. Instead of showing the copy relationship properly, it displays garbled text like:
C copied.txt
or ginal.txt <--
M original.txt
The line "or ginal.txt" appears to be a truncation of "original.txt" from the
copy arrow notation (original.txt -> copied.txt).
To Reproduce
- Create a git repository with the following script:
git init
git config user.name "Test User"
git config user.email "[email protected]"
printf 'content line\n%.0s' {1..30} > original.txt
git add original.txt
git commit -m "Initial commit"
cp original.txt copied.txt
echo "new line" >> original.txt
git add -A
- Run git status to verify the copied status appears correctly:
Changes to be committed:
copied: original.txt -> copied.txt
modified: original.txt
- Open lazygit in the repository
- Observe the Files panel showing the garbled status
Expected behavior
lazygit should properly display the copied file status or treat it as a new file
Screenshots

Version info:
- commit=, build date=, build source=Homebrew, version=0.55.1, os=darwin, arch=arm64, git version=2.49.0
- git version 2.49.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working