Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH] hash-object doc: "git hash-object -w" can write invalid objects

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:14

Jonathan Nieder [off-list ref] writes:
Perhaps by default hash-object should automatically fsck the objects
it is asked to create.
Yes, and let the experimentors to override when they are trying to
invent a new object type, finished a reader but not a writer (that
is why they are exprimenting with hash-object) nor updated fsck,
with an explicit command line option to "hash-objects".

Then we do not have to say "-w by default can create an invalid
object" in its documentation.  In a sense, allowing to create any
garbage (by the definition of then-current fsck and the rest of the
Git) is the raison d'etre of the command.

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