Thread (8 messages) 8 messages, 6 authors, 2016-06-15

Re: [PATCH 1/4] sha1-lookup: add new "sha1_pos" function to efficiently lookup sha1

From: Jeff King <hidden>
Date: 2016-06-15 22:46:33

On Sun, Apr 05, 2009 at 09:06:56PM +0200, Sverre Rabbelier wrote:
quoted
It is an assert, and I think Peff's die("BUG: ...") would be a good idea.
As long as the <something that makes sense to the user> does indeed
make sense, right :).
I think:

  die("BUG: assertion failed in binary search")

would be sufficient to tell the user what is going on, and let them
inform the list what happened.

However, if this "oops" has been there for 2 years and nobody has seen
it, it's entirely possible that somebody actually got the binary search
code right in the first place. ;)

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help