git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Mark WoodingNext: Junio C Hamano
Message 4 of 6 in “Teach git-checkout-index to use file suffixes.”
  1. Teach git-checkout-index to use file suffixes.Shawn Pearce, Mar 1, 2006
  2. Shawn PearceMar 1, 2006
  3. Mark WoodingMar 1, 2006
  4. Shawn PearceMar 2, 2006
  5. Junio C HamanoMar 2, 2006
  6. Shawn PearceMar 2, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.