Re: [PATCH] make sha1_file.c::matches_pack_name() available to others

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 8 Sep 2007, Junio C Hamano wrote:

> Even though our convention is "zero return means good", it goes a
> bit too far for matches_pack_name() to return 0 when it found
> the pack is what the name refers to.  This fixes that silly and
> obvious interface bug.

For something with a boolean return value I agree.

Otherwise, for interfaces where a non zero return value means error, it 
is best to use a negative value (like -1) which has less of a positive 
connotation, and that wasn't done here either.


Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux