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

Re: [PATCH] git-am --one

From
HAH. Peter Anvin <hpa@zytor.com>
Date
Dec 14, 2005, 01:58 UTC
Message-ID
<439F7C5A.4030509@zytor.com>
In-Reply-To
<7v7ja85tqe.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 19 quoted lines
> 
> Another thing you may probably want is to loop over "$@", so
> that the flag is not --one anymore, but --2822 (or --bare as
> opposed to mbox format) and do something like this:
> 
> 	case "$series_of_2822_messages" in
>         '') ... original code ... ;;
>         *)
>         	i=1
>                 for input
>                 do
> 			this=`printf "%${prec}d" $i
>                         cp "$input" "$dotest/$this"
>                         i=$(($i+1))
> 		done
>                 printf "%${prec}d" $# >"$dotest/last"
>                 ;;
> 	esac
> 
That is definitely a good idea.  I'll mess with it a bit.
	-hpa
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “git-am --one”
  1. git-am --oneH. Peter Anvin, Dec 14, 2005
  2. Junio C HamanoDec 14, 2005
  3. H. Peter AnvinDec 14, 2005
  4. Junio C HamanoDec 14, 2005
  5. H. Peter AnvinDec 14, 2005
  6. Junio C HamanoDec 14, 2005

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.