gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Staging lines doesn’t stage

Open hadronized opened this issue 2 years ago • 7 comments

Describe the bug Pressing s or any mapped key on diff_stage_lines doesn’t stage anything. However, it does unstage.

To Reproduce Steps to reproduce the behavior:

  1. Just try to stage some lines.

Expected behavior It should stage.

Screenshots N/A

Context (please complete the following information):

 - OS/Distro + Version: Linux awake 6.1.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 14 Feb 2023 22:08:08 +0000 x86_64 GNU/Linux
 - GitUI Version: `gitui 0.22.1`
 - Rust version: `rustc 1.66.1 (90743e729 2023-01-10)`

Additional context N/A

hadronized avatar Mar 02 '23 19:03 hadronized

can't reproduce:

Screenflick Movie 8

extrawurst avatar Mar 04 '23 16:03 extrawurst

Okay, I’ll try again and will provide more information.

hadronized avatar Mar 05 '23 20:03 hadronized

I tried with a fresh build with master, and I still reproduce, whether I’m overriding the key or not.

hadronized avatar Mar 09 '23 21:03 hadronized

@phaazon is this maybe the case for new files in your repo? I reproduced such behavior with a new file (more precisely, a file that is untracked).

@extrawurst is this expected for untracked files or should it be possible to stage such lines? I can make PR if needed.

lightsnowball avatar Aug 18 '23 20:08 lightsnowball

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 17 '24 15:03 stale[bot]