Merge branch 'uk/fix-author-ident-sed-script'
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Oct 2010 19:11:12 +0000 (12:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Oct 2010 19:11:12 +0000 (12:11 -0700)
* uk/fix-author-ident-sed-script:
get_author_ident_from_commit(): remove useless quoting

1  2 
git-sh-setup.sh
diff --combined git-sh-setup.sh
index 58d30c9388f14284214fee8ade4603a03e02b3b2,8d54b73d3208064829613499580bad541586c725..ae031a1375e9c674d80b9fa3d3d3b76780deaf9f
@@@ -151,17 -151,14 +151,14 @@@ get_author_ident_from_commit () 
                s/'\''/'\''\\'\'\''/g
                h
                s/^author \([^<]*\) <[^>]*> .*$/\1/
-               s/'\''/'\''\'\'\''/g
                s/.*/GIT_AUTHOR_NAME='\''&'\''/p
  
                g
                s/^author [^<]* <\([^>]*\)> .*$/\1/
-               s/'\''/'\''\'\'\''/g
                s/.*/GIT_AUTHOR_EMAIL='\''&'\''/p
  
                g
                s/^author [^<]* <[^>]*> \(.*\)$/\1/
-               s/'\''/'\''\'\'\''/g
                s/.*/GIT_AUTHOR_DATE='\''&'\''/p
  
                q
@@@ -209,20 -206,5 +206,20 @@@ case $(uname -s) i
        find () {
                /usr/bin/find "$@"
        }
 +      is_absolute_path () {
 +              case "$1" in
 +              [/\\]* | [A-Za-z]:*)
 +                      return 0 ;;
 +              esac
 +              return 1
 +      }
        ;;
 +*)
 +      is_absolute_path () {
 +              case "$1" in
 +              /*)
 +                      return 0 ;;
 +              esac
 +              return 1
 +      }
  esac