rebase -i: fix cases ignoring core.commentchar
authorEric Sunshine <sunshine@sunshineco.com>
Fri, 16 Aug 2013 21:44:07 +0000 (17:44 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 18 Aug 2013 20:33:01 +0000 (13:33 -0700)
180bad3d (rebase -i: respect core.commentchar, 2013-02-11) updated
"rebase -i" to honor core.commentchar but missed one instance of
hard-coded '#' comment character in skip_unnecessary_picks().

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh
index 5822b2c59212fa5bd8dece9261d69e4fbc6a9719..1e3097ed243ab15089e4d90166cdf310889829cb 100644 (file)
@@ -661,7 +661,7 @@ skip_unnecessary_picks () {
                                ;;
                        esac
                        ;;
-               3,#*|3,)
+               3,"$comment_char"*|3,)
                        # copy comments
                        ;;
                *)