pcreux/git-branch-delete-orphans — pull request #4 by pvdb (2012-07-11 19:01:11+00:00)
Title: Signal handling: TERM and INT

Instead of raising an interrupt exception, we now exit "elegantly" whenever the user uses CTRL-C to abort the execution of the script.

*before*

```shell

release/12.7.0 tracks a remote branch which does not exist anymore. Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all?
^C/Users/pvandenb/Workarea/git-branch-delete-orphans/bin/git-branch-delete-orphans:31:in `gets': Interrupt
from /Users/pvandenb/Workarea/git-branch-delete-orphans/bin/git-branch-delete-orphans:31:in `block in cli'
from /Users/pvandenb/Workarea/git-branch-delete-orphans/bin/git-branch-delete-orphans:25:in `each'
from /Users/pvandenb/Workarea/git-branch-delete-orphans/bin/git-branch-delete-orphans:25:in `cli'
from /Users/pvandenb/Workarea/git-branch-delete-orphans/bin/git-branch-delete-orphans:45:in `

'

$ _
```

**after**

```shell
release/12.7.0 tracks a remote branch which does not exist anymore. Do you want to [d]elete it, [D]elete all, [k]eep it or [K]eep all?
^C
$ _
```