Re: Pressing Ctrl-C during 'git checkout <branch-name>' messes up the repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/15/23 17:24, brian m. carlson wrote:
If you don't want to interrupt the operation, then don't hit Ctrl-C.


A more comprehensive way to handle this is to offer the user a choice:

Ctrl-C was pressed during a long operation. Please choose:

(1) press Ctrl-C again to stop immediately while likely leaving the repository in inconsistent state

(2) press C to continue

(3) press R to roll back the current operation


And if the user would press Ctrl-C again during the rollback - he would be presented with choices:

Ctrl-C was pressed during the roll back of a long operation. Please choose:

(1) press Ctrl-C again to stop immediately while likely leaving the repository in inconsistent state

(2) press C to continue the rollback


This would be a lot better than to just stop immediately and leave the repository damaged.



Yuri







[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux