Explain seemingly pointless use of system in difftool
authorAlex Riesen <redacted>
Thu, 23 Apr 2009 19:18:09 +0000 (21:18 +0200)
committerJunio C Hamano <redacted>
Fri, 24 Apr 2009 08:20:35 +0000 (01:20 -0700)
Portability reasons.

Signed-off-by: Alex Riesen <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-difftool.perl

index bd828c2a6f9f596ada637bc37afabe97bbb47e26..ba5e60a45e2c4a8b54e6a58e656b3978dcb45633 100755 (executable)
@@ -82,5 +82,11 @@ sub generate_command
 }
 
 setup_environment();
+
+# ActiveState Perl for Win32 does not implement POSIX semantics of
+# exec* system call. It just spawns the given executable and finishes
+# the starting program, exiting with code 0.
+# system will at least catch the errors returned by git diff,
+# allowing the caller of git difftool better handling of failures.
 my $rc = system(generate_command());
 exit($rc | ($rc >> 8));
git clone https://git.99rst.org/PROJECT