author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 26 Feb 2006 23:51:24 +0000 (15:51 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 27 Feb 2006 00:21:27 +0000 (16:21 -0800) | ||
commit | 8676eb43133cebe5121b8426f0e67f32c5cdefaa | |
tree | d8e87b11cc0cb9427be43c419377c813c2f75d28 | tree | snapshot |
parent | ac5f7c62c2d59cdad0813fcd8c999db96a4fc9e4 | commit | diff |
Make git diff-generation use a simpler spawn-like interface
Instead of depending of fork() and execve() and doing things in between
the two, make the git diff functions do everything up front, and then do
a single "spawn_prog()" invocation to run the actual external diff
program (if any is even needed).
This actually ends up simplifying the code, and should make it much
easier to make it efficient under broken operating systems (read: Windows).
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Instead of depending of fork() and execve() and doing things in between
the two, make the git diff functions do everything up front, and then do
a single "spawn_prog()" invocation to run the actual external diff
program (if any is even needed).
This actually ends up simplifying the code, and should make it much
easier to make it efficient under broken operating systems (read: Windows).
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history |