[ProgClub programming] git commit error level

John Elliot V | ProgClub jj5 at progclub.org
Tue Jun 25 11:07:13 AEST 2019


On 25/6/19 10:26 am, John Elliot V | ProgClub wrote:
> I read the code for git commit
> 
>  https://github.com/git/git/blob/master/builtin/commit.c#L1468
> 
> and it returns 1, exits 1, and dies all over the place for all kinds of
> reasons.
> 
> Lame.

If you want to see how it's done properly, the Subversion error codes
are instructive:

https://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_error_codes.h?view=markup

-- 
|_|O|_| ProgClub
|_|_|O| Because every programmer needs a good club!
|O|O|O| https://www.progclub.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jj5.vcf
Type: text/x-vcard
Size: 231 bytes
Desc: not available
URL: <http://www.progclub.org/pipermail/programming/attachments/20190625/c8a301fa/attachment.vcf>


More information about the programming mailing list