Re: [PATCH] Refactor git-completion to allow ZSH usage of PS1 functions
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 26, 2011, 19:15 UTC
- Message-ID
- <7vtydkddto.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4DB702E6.5090105@gmail.com>
Marius Storm-Olsen <mstormo@gmail.com> writes:
> Junio C Hamano said the following on 26.04.2011 12:21: >> I'd be very negative on splitting this file into more than one files. > > The only other option would be duplication. Is that preferred?
That is not the answer I was hoping to hear. Can't we think of a way to share without duplication the common parts and have tweaks per two shell implementations?
A conditional that says "Do this part only if I am zsh" in a single file is fine. Makefile that concatenates the common one and specific one among two would also be acceptable, even though it makes things more cumbersome to the user. But no matter what you do, I would really prefer for the user to have to copy just _one_ file, not two.