Re: [PATCH 2/3] fsck_commit: remove duplicate tests

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Martin Koegler <mkoegler@...>
Cc: <git@...>
Date: Sunday, February 3, 2008 - 7:58 pm

Martin Koegler <mkoegler@auto.tuwien.ac.at> writes:


As I believe in belt-and-suspenders when it comes to validation,
I am somewhat uneasy with this change.  If it ever turns out
that we would need to make parse_commit_buffer() more lenient
during the normal operation, some of this would need to be
reverted (for example, you may not need to have a valid "tree"
to salvage the log messages from a corrupt history by running
"git log"), and forgetting to do so will result in fsck that
does not validate enough.

The validation done by parse_commit_buffer() and fsck serve two
different purposes, and they can have different leniency
requirements.  I do not necessarily agree that it is a good idea
to tie them together like this patch.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/3] fsck_commit: remove duplicate tests, Junio C Hamano, (Sun Feb 3, 7:58 pm)
Re: [PATCH 2/3] fsck_commit: remove duplicate tests, Johannes Schindelin, (Sun Feb 3, 8:04 pm)
Re: [PATCH 2/3] fsck_commit: remove duplicate tests, Martin Koegler, (Mon Feb 4, 3:06 am)
Re: [PATCH 2/3] fsck_commit: remove duplicate tests, Junio C Hamano, (Mon Feb 4, 3:33 am)