Re: [RFC PATCH 5/6] sha1-name: Teach `get_oid_with_context[_1]()` to be gentle
- From
Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
- Date
- Jul 18, 2018, 23:14 UTC
- Message-ID
- <2763ef16-cbbd-e371-4522-9948a1f05812@gmail.com>
- In-Reply-To
- <xmqqefg1oeuk.fsf@gitster-ct.c.googlers.com>
Hello,
Show 10 quoted lines
> This points us back to "only-to-die" which was "gently" before
> 2e83b66c ("fix overslow :/no-such-string-ever-existed diagnostics",
> 2011-05-10). I think we have to keep them both, as only-to-die
> means more than just being not gentle, and we cannot revert the
> renaming s/!gently/only-to-die/ done by 2e83b66c and teach GENTLY to
> more codepaths, I think. But I might be mistaken and we may be able
> to get rid of only-to-die at the end of this series. I dunno.
>
> In any case, what's the reason why this new "gentle" option is
> incompatible with "only-to-die"?"GET_OID_GENTLY" would be used in the case we want to handle fatal errors, while "GET_OID_ONLY_TO_DIE" means that if there is any fatal error, we can just exit. They are not compatible because that would mean that if there is any fatal error, the program should die and not die at the same time.
Thank you for taking time to look over these patches!
Best, Paul