Documentation on writing portable code for Git

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

 



On Wed, Jun 2, 2010 at 06:41, Johannes Sixt <j.sixt@xxxxxxxxxxxxx> wrote:
> Am 6/2/2010 2:13, schrieb Brandon Casey:
>>  test_expect_success 'setup' '
>> -     unset GIT_PAGER GIT_PAGER_IN_USE &&
>> +     unset GIT_PAGER GIT_PAGER_IN_USE
>
> Maybe we should terminate the line with ';' to document that it is a
> deliberate choice that there is no '&&'?

(Split from the "ignore return status of shell's unset builtin"
thread)

It would be nice if there was documentation describing how to write
portable code for various parts of Git. Basically a bullet-point
aggregate of the subjects of various patches we keep getting from
users of IRIX, Solaris, HP-UX etc. E.g:

    * Use FOO=bar and then export FOO, not export FOO=bar

    * Don't check the return value of unset, Solaris ...

I could contribute some of these for Perl.
--
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]