author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 9 Jul 2007 15:55:45 +0000 (11:55 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 10 Jul 2007 01:12:35 +0000 (21:12 -0400) | ||
commit | 56e29f597c8f85b0dfee9ba7408f8d09fd5adb5a | |
tree | ef3ef0afb2903a6d5624792d21879333a30423d8 | tree | snapshot |
parent | 88dce86f38bed84abadd73bbc40d9df92b7519db | commit | diff |
git-gui: Correct ls-tree buffering problem in browser
Our file browser was showing bad output as it did not properly buffer
a partial record when read from `ls-tree -z`. This did not show up on
my Mac OS X system as most trees are small, the pipe buffers generally
big and `ls-tree -z` was generally fast enough that all data was ready
before Tcl started to read. However on my Cygwin system one of my
production repositories had a large enough tree and packfile that it
took a couple of pipe buffers for `ls-tree -z` to complete its dump.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Our file browser was showing bad output as it did not properly buffer
a partial record when read from `ls-tree -z`. This did not show up on
my Mac OS X system as most trees are small, the pipe buffers generally
big and `ls-tree -z` was generally fast enough that all data was ready
before Tcl started to read. However on my Cygwin system one of my
production repositories had a large enough tree and packfile that it
took a couple of pipe buffers for `ls-tree -z` to complete its dump.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/browser.tcl | diff | blob | history |