Re: [PATCH/RFC v3 1/6] reflog: refactor parsing and checking
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 17, 2009, 05:35 UTC
- Message-ID
- <alpine.DEB.1.00.0901170632210.3586@pacific.mpi-cbg.de>
- In-Reply-To
- <1232163011-20088-2-git-send-email-trast@student.ethz.ch>
Hi,
On Sat, 17 Jan 2009, Thomas Rast wrote:
> Note that this switches for_each_reflog_ent() from silently ignoring > errors to die().
I am not convinced this is necessary, and neither that it is good.
You could return int from parse_reflog_line() just like the other non-dying functions.
And keep in mind that reflogs could be corrupted for all kinds of reasons; with your patch, reflog handling would fail gracelessly, even if a lot could still be salvaged (by ignoring the error with a warning).
Ciao, Dscho