Subject: Re: [PATCH] git-am --one

From: "H. Peter Anvin" <[email-masked]>
Date: Tue, 13 Dec 2005 17:58:50 -0800

Junio C Hamano wrote:
> 
> 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