summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f31b6ff)
raw | patch | inline | side by side (parent: f31b6ff)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 12 Jul 2007 06:45:23 +0000 (02:45 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 12 Jul 2007 06:45:23 +0000 (02:45 -0400) |
This cat-file was done on maint, where we did not have git_read
available to us. But here on master we do, so we should make
use of it.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
available to us. But here on master we do, so we should make
use of it.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/commit.tcl | patch | blob | history |
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 3172d7cb60b87cfb5d681d511fe9c5442749793c..46a78c158f53372a481061e9a5a6072c40e54e58 100644 (file)
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
# -- Verify this wasn't an empty change.
#
if {$commit_type eq {normal}} {
- set fd_ot [open "| git cat-file commit $PARENT" r]
+ set fd_ot [git_read cat-file commit $PARENT]
fconfigure $fd_ot -encoding binary -translation lf
set old_tree [gets $fd_ot]
close $fd_ot