Merge branch 'maint'
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 18:21:46 +0000 (11:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Oct 2009 18:21:46 +0000 (11:21 -0700)
* maint:
help -a: do not unnecessarily look for a repository
Do not try to remove directories when removing old links
rebase -i: more graceful handling of invalid commands
help -i: properly error out if no info viewer can be found

1  2 
git-rebase--interactive.sh
index a1879e3ace72704086010dc5528d3897a91a6d02,9b1e899e279e63cf3b952d910974ebf619d63bee..53ad248ee505091d8e11cb9eb82ebb9b017b4262
@@@ -340,14 -340,6 +340,14 @@@ do_next () 
                pick_one $sha1 ||
                        die_with_patch $sha1 "Could not apply $sha1... $rest"
                ;;
 +      reword|r)
 +              comment_for_reflog reword
 +
 +              mark_action_done
 +              pick_one $sha1 ||
 +                      die_with_patch $sha1 "Could not apply $sha1... $rest"
 +              git commit --amend
 +              ;;
        edit|e)
                comment_for_reflog edit
  
                ;;
        *)
                warn "Unknown command: $command $sha1 $rest"
-               die_with_patch $sha1 "Please fix this in the file $TODO."
+               if git rev-parse --verify -q "$sha1" >/dev/null
+               then
+                       die_with_patch $sha1 "Please fix this in the file $TODO."
+               else
+                       die "Please fix this in the file $TODO."
+               fi
                ;;
        esac
        test -s "$TODO" && return
@@@ -760,7 -757,6 +765,7 @@@ first and then run 'git rebase --contin
  #
  # Commands:
  #  p, pick = use commit
 +#  r, reword = use commit, but edit the commit message
  #  e, edit = use commit, but stop for amending
  #  s, squash = use commit, but meld into previous commit
  #