OSDN Git Service

Merge branch 'jk/rebase-i-comment-char'
authorJunio C Hamano <gitster@pobox.com>
Sun, 17 Feb 2013 23:25:19 +0000 (15:25 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Feb 2013 23:25:20 +0000 (15:25 -0800)
Finishing touches to the earlier core.commentchar topic to cover
"rebase -i" as well.

* jk/rebase-i-comment-char:
  rebase -i: respect core.commentchar

1  2 
git-rebase--interactive.sh
t/t3404-rebase-interactive.sh

@@@ -879,9 -878,9 +883,9 @@@ git rev-list $merges_option --pretty=on
  while read -r shortsha1 rest
  do
  
 -      if test -z "$keep_empty" && is_empty_commit $shortsha1
 +      if test -z "$keep_empty" && is_empty_commit $shortsha1 && ! is_merge_commit $shortsha1
        then
-               comment_out="# "
+               comment_out="$comment_char "
        else
                comment_out=
        fi
Simple merge