Re: [PATCH] Improve bash prompt to detect merge / rebase in progress

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

 



Robin Rosenberg wrote:
> +             if [ -d "$g/../.dotest" ]
> +             then
> +                     ...
> +             else
> +                     if [ -d "$g/.dotest-merge" ]
> +                     then
> +                             ...
> +                     else
> +                             if [ -f "$g/MERGE_HEAD" ]
> +                             then
> +                                     ...
> +                             else
> +                                     ...
> +                             fi
> +                     fi
> +             fi

You can use 'elif' to avoid the increasing indentation.

-- Hannes


-
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