diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-02-01 15:52:33 -0500 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-01 22:24:17 -0800 |
commit | 072db2789c21314cfbf43215186341d0b2b47523 (patch) | |
tree | 2326e8e1049e6605c8027520b350beb52cdf7414 /git-bisect.sh | |
parent | Correct comment in prepare_packed_git_one. (diff) | |
download | tgif-072db2789c21314cfbf43215186341d0b2b47523.tar.xz |
Refactor open_packed_git to return an error code.
Because I want to reuse open_packed_git in a context where I don't
want the process to die if the packfile in question is bogus, I'm
changing its behavior to return error("...") rather than die("...")
when it detects something is wrong with the packfile it was given.
Right now we still must die out of use_pack should open_packed_git
fail, as none of use_pack's callers are prepared to handle a failure
from that function.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-bisect.sh')
0 files changed, 0 insertions, 0 deletions