]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Merge branch 'jn/rebase-rename-am' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Aug 2010 19:53:08 +0000 (12:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Aug 2010 19:53:08 +0000 (12:53 -0700)
* jn/rebase-rename-am:
  rebase: protect against diff.renames configuration
  t3400 (rebase): whitespace cleanup
  Teach "apply --index-info" to handle rename patches
  t4150 (am): futureproof against failing tests
  t4150 (am): style fix

1  2 
git-rebase.sh
t/test-lib.sh

diff --combined git-rebase.sh
index 1d38afdb10e24e11dc5428c5a38c27fe2c773a4d,386be43d995adf5550071deca0af9e25d2fcaedb..1b9ea48cd713d7f6b25e529d09743447635f6432
@@@ -208,7 -208,6 +208,7 @@@ d
                test -d "$dotest" -o -d "$GIT_DIR"/rebase-apply ||
                        die "No rebase in progress?"
  
 +              git update-index --ignore-submodules --refresh &&
                git diff-files --quiet --ignore-submodules || {
                        echo "You must edit all merge conflicts and then"
                        echo "mark them as resolved using git add"
        --root)
                rebase_root=t
                ;;
 -      -f|--f|--fo|--for|--forc|force|--force-r|--force-re|--force-reb|--force-reba|--force-rebas|--force-rebase|--no-ff)
 +      -f|--f|--fo|--for|--forc|--force|--force-r|--force-re|--force-reb|--force-reba|--force-rebas|--force-rebase|--no-ff)
                force_rebase=t
                ;;
        --rerere-autoupdate|--no-rerere-autoupdate)
@@@ -544,7 -543,7 +544,7 @@@ f
  if test -z "$do_merge"
  then
        git format-patch -k --stdout --full-index --ignore-if-in-upstream \
-               $root_flag "$revisions" |
+               --no-renames $root_flag "$revisions" |
        git am $git_am_opt --rebasing --resolvemsg="$RESOLVEMSG" &&
        move_to_original_branch
        ret=$?
diff --combined t/test-lib.sh
index e8f21d577ce4da474e2a9545a667ff5dc6dc145f,cb15798d17f275d73489d2cbe580e3419657e88b..29fd7209cf1aff851f0f1f95ccecd0d949b3da6c
        -v|--v|--ve|--ver|--verb|--verbo|--verbos|--verbose)
                verbose=t; shift ;;
        -q|--q|--qu|--qui|--quie|--quiet)
 -              quiet=t; shift ;;
 +              # Ignore --quiet under a TAP::Harness. Saying how many tests
 +              # passed without the ok/not ok details is always an error.
 +              test -z "$HARNESS_ACTIVE" && quiet=t; shift ;;
        --with-dashes)
                with_dashes=t; shift ;;
        --no-color)
                color=; shift ;;
 -      --no-python)
 -              # noop now...
 -              shift ;;
        --va|--val|--valg|--valgr|--valgri|--valgrin|--valgrind)
                valgrind=t; verbose=t; shift ;;
        --tee)
@@@ -256,6 -257,10 +256,10 @@@ q_to_cr () 
        tr Q '\015'
  }
  
+ q_to_tab () {
+       tr Q '\011'
+ }
  append_cr () {
        sed -e 's/$/Q/' | tr Q '\015'
  }