From: Felipe Contreras Date: Fri, 27 Nov 2020 09:13:20 GMT Subject: Re: [PATCH v3 04/16] reftable: add error related functionality Message-ID: In-Reply-To: <2aa30f536fb7ce5501d1ecf0315cbcb1c1c5ce38.1606419752.git.gitgitgadget@gmail.com> On Fri, Nov 27, 2020 at 2:42 AM Han-Wen Nienhuys via GitGitGadget wrote: > +/* > + Errors in reftable calls are signaled with negative integer return values. 0 > + means success. > +*/ This is the format of multi-line comments: /* * A very long * multi-line comment. */ > +enum reftable_error { > + /* Unexpected file system behavior */ > + REFTABLE_IO_ERROR = -2, > + > + /* Format inconsistency on reading data > + */ No need for a multi-line comment here. > + REFTABLE_FORMAT_ERROR = -3, > + > + /* File does not exist. Returned from block_source_from_file(), because > + it needs special handling in stack. > + */ Once again, and for the rest of the file. -- Felipe Contreras