Merge branch 'hold/am'
authorJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 21:04:43 +0000 (13:04 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Dec 2005 21:04:43 +0000 (13:04 -0800)
1  2 
git-am.sh

diff --combined git-am.sh
+++ b/git-am.sh
@@@ -1,10 -1,14 +1,10 @@@
  #!/bin/sh
  #
  #
 -. git-sh-setup
  
 -usage () {
 -    echo >&2 "usage: $0 [--signoff] [--dotest=<dir>] [--utf8] [--binary] [--3way] <mbox>"
 -    echo >&2 "        or, when resuming"
 -    echo >&2 "        $0 [--skip | --resolved]"
 -    exit 1;
 -}
 +USAGE='[--signoff] [--dotest=<dir>] [--utf8] [--binary] [--3way] <mbox>
 +  or, when resuming [--skip | --resolved]'
 +. git-sh-setup
  
  stop_here () {
      echo "$1" >"$dotest/next"
@@@ -160,10 -164,7 +160,7 @@@ els
        # Start afresh.
        mkdir -p "$dotest" || exit
  
-       # cat does the right thing for us, including '-' to mean
-       # standard input.
-       cat "$@" |
-       git-mailsplit -d$prec "$dotest/" >"$dotest/last" || {
+       git-mailsplit -d"$prec" -o"$dotest" -b -- "$@" > "$dotest/last" ||  {
                rm -fr "$dotest"
                exit 1
        }