| Index: git_squash_branch.py
|
| diff --git a/git_squash_branch.py b/git_squash_branch.py
|
| index 0e02539356cd414180430498d96e68ce27d21752..83acfa7f033d48fdbac8d145c1b8022d6c312c69 100755
|
| --- a/git_squash_branch.py
|
| +++ b/git_squash_branch.py
|
| @@ -15,6 +15,12 @@ def main(args):
|
| help='Use the given <msg> as the first line of the commit message.')
|
| opts = parser.parse_args(args)
|
| squash_current_branch(opts.message)
|
| + return 0
|
| +
|
|
|
| if __name__ == '__main__':
|
| - sys.exit(main(sys.argv[1:]))
|
| + try:
|
| + sys.exit(main(sys.argv[1:]))
|
| + except KeyboardInterrupt:
|
| + sys.stderr.write('interrupted\n')
|
| + sys.exit(1)
|
|
|