We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 62606f2 + d879c63 commit 00ee1bbCopy full SHA for 00ee1bb
webdiff/gitwebdiff.py
@@ -17,9 +17,12 @@ def run():
17
# "git webdiff <sha>". This allows special treatment (e.g. for
18
# staging diffhunks).
19
os.environ['WEBDIFF_FROM_HEAD'] = 'yes'
20
-
21
- sys.exit(subprocess.call(
22
- 'git difftool -d -x webdiff'.split(' ') + sys.argv[1:]))
+
+ try:
+ subprocess.call('git difftool -d -x webdiff'.split(' ') + sys.argv[1:])
23
+ except KeyboardInterrupt:
24
+ # Don't raise an exception to the user when sigint is received
25
+ pass
26
27
28
if __name__ == '__main__':
0 commit comments