Re: [PATCH] Improve bash prompt to detect merge / rebase in progress
- From
Johannes Sixt <johannes.sixt@telecom.at>
- Date
- Sep 2, 2007, 10:18 UTC
- Message-ID
- <20070902101825.1938C576FA@dx.sixt.local>
- In-Reply-To
- <200709020152.30070.robin.rosenberg@dewire.com>
Robin Rosenberg wrote:
Show 16 quoted lines
> + 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