Re: [PATCH] Teach git-checkout-index to use file suffixes.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Mar 2, 2006, 06:51 UTC
- Message-ID
- <20060302065136.GA6377@spearce.org>
- In-Reply-To
- <slrne0bh1p.fr9.mdw@metalzone.distorted.org.uk>
Mark Wooding <mdw@distorted.org.uk> wrote:
Show 13 quoted lines
> Shawn Pearce <spearce@spearce.org> wrote: > > > I thought about using instead: > > > > --stage=all --suffix1=\#1 --suffix2\=#2 --suffix3=\#3 > > How about something like > > --suffixes=:#1:#2:#3 > > uses first character as a delimiter to separate the suffixes. A single > --suffix option could plausibly provide the suffix if only one stage is > being checked out, and doesn't have the grim delimiter wart.
Why let the user choose? '/' shouldn't be permitted as that (possibly) would try to create a directory also named the same as the file (a bad thing). Then its just two formats, depending on if you want all stages or just 1 stage:
--stage=all --suffix=#1/#2/#3
or
--stage=1 --suffix=#1
?
-- Shawn.