-
-
Notifications
You must be signed in to change notification settings - Fork 638
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
In the options, the number of context lines must be set to exactly 3, otherwise hunk management does not work at all.
That is, staging / unstaging / resetting of whole hunks.
To Reproduce
Steps to reproduce the behavior:
- Have multiple unstaged changes scattered across a file, e.g. in line 1 and line 10
- Open
gitui
in the first Tab (Status) - Press O
- Set the option
Context lines
to any other number than 3 - Try to stage a single hunk by selecting it and pressing
Enter
(nothing happens
) - Stage the whole file
- Try to unstage a single hunk by selecting it and pressing
Enter
(error:hunk not found
) - Unstage the whole file
- Try to reset a hunk by selecting it and pressing
Shift D
(crash:hunk not found
)
Expected behavior
Staging, unstaging and resetting works like with number of context lines = 3
Context (please complete the following information):
- OS: Arch
- GitUI Version 0.23.0
Related issues:
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working