(List (= scope=<EAssignScope.GLOBAL 1> flags=0 words=[] bindings=[('test_description', {[SQ <LIT_CHARS "git rebase --whitespace=fix\n"> <LIT_CHARS "\n"> <LIT_CHARS "This test runs git rebase --whitespace=fix and make sure that it works.\n">]})]) (Com {[LIT_CHARS .]} {[LIT_CHARS ./test-lib.sh]} ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS file]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "b\n"][LIT_CHARS "c\n"][LIT_CHARS "\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS expect-first]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "b\n"][LIT_CHARS "c\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS second]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "b\n"][LIT_CHARS "c\n"][LIT_CHARS "\n"][LIT_CHARS "d\n"][LIT_CHARS "e\n"][LIT_CHARS "f\n"][LIT_CHARS "\n"][LIT_CHARS "\n"][LIT_CHARS "\n"][LIT_CHARS "\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS expect-second]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "b\n"][LIT_CHARS "c\n"][LIT_CHARS "\n"][LIT_CHARS "d\n"][LIT_CHARS "e\n"][LIT_CHARS "f\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ <LIT_CHARS "blank line at end of file; extend at end of file">]} {[SQ <LIT_CHARS "\n"> <LIT_CHARS "\tgit commit --allow-empty -m \"Initial empty commit\" &&\n"> <LIT_CHARS "\tgit add file && git commit -m first &&\n"> <LIT_CHARS "\tmv second file &&\n"> <LIT_CHARS "\tgit add file &&\tgit commit -m second &&\n"> <LIT_CHARS "\tgit rebase --whitespace=fix HEAD^^ &&\n"> <LIT_CHARS "\tgit diff --exit-code HEAD^:file expect-first &&\n"> <LIT_CHARS "\ttest_cmp file expect-second\n">]} ) (Com {[LIT_CHARS sed]} {[LIT_CHARS -e] [SQ <LIT_CHARS s/Z//>]} < (FilenameRedirectNode filename={[LIT_CHARS third]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "b\n"][LIT_CHARS "c\n"][LIT_CHARS "\n"][LIT_CHARS "d\n"][LIT_CHARS "e\n"][LIT_CHARS "f\n"][LIT_CHARS " Z\n"][LIT_CHARS " Z\n"][LIT_CHARS "h\n"][LIT_CHARS "i\n"][LIT_CHARS "j\n"][LIT_CHARS "k\n"][LIT_CHARS "l\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS sed]} {[LIT_CHARS -e] [SQ <LIT_CHARS "s/ //g">]} < (FilenameRedirectNode filename={[LIT_CHARS third]} <REDIR_LESS "<"> 0), (FilenameRedirectNode filename={[LIT_CHARS expect-third]} <REDIR_GREAT ">"> 1), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ <LIT_CHARS "two blanks line at end of file; extend at end of file">]} {[SQ <LIT_CHARS "\n"> <LIT_CHARS "\tcp third file && git add file && git commit -m third &&\n"> <LIT_CHARS "\tgit rebase --whitespace=fix HEAD^^ &&\n"> <LIT_CHARS "\tgit diff --exit-code HEAD^:file expect-second &&\n"> <LIT_CHARS "\ttest_cmp file expect-third\n">]} ) (Com {[LIT_CHARS test_expect_success]} {[SQ <LIT_CHARS "same, but do not remove trailing spaces">]} {[SQ <LIT_CHARS "\n"> <LIT_CHARS "\tgit config core.whitespace \"-blank-at-eol\" &&\n"> <LIT_CHARS "\tgit reset --hard HEAD^ &&\n"> <LIT_CHARS "\tcp third file && git add file && git commit -m third &&\n"> <LIT_CHARS "\tgit rebase --whitespace=fix HEAD^^ &&\n"> <LIT_CHARS "\tgit diff --exit-code HEAD^:file expect-second &&\n"> <LIT_CHARS "\ttest_cmp file third\n">]} ) (Com {[LIT_CHARS sed]} {[LIT_CHARS -e] [SQ <LIT_CHARS s/Z//>]} < (FilenameRedirectNode filename={[LIT_CHARS beginning]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "\t\t Z\n"][LIT_CHARS " Z\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS cat]} < (FilenameRedirectNode filename={[LIT_CHARS expect-beginning]} <REDIR_GREAT ">"> 1), (HereDocRedirectNode here_end='EOF' do_expansion=True body_word={[DQ [LIT_CHARS "a\n"][LIT_CHARS "\n"][LIT_CHARS "\n"][LIT_CHARS "1\n"][LIT_CHARS "2\n"][LIT_CHARS "3\n"][LIT_CHARS "4\n"][LIT_CHARS "5\n"]]} <REDIR_DLESS "<<"> 0), > ) (Com {[LIT_CHARS test_expect_success]} {[SQ <LIT_CHARS "at beginning of file">]} {[SQ <LIT_CHARS "\n"> <LIT_CHARS "\tgit config core.whitespace \"blank-at-eol\" &&\n"> <LIT_CHARS "\tcp beginning file &&\n"> <LIT_CHARS "\tgit commit -m beginning file &&\n"> <LIT_CHARS "\tfor i in 1 2 3 4 5; do\n"> <LIT_CHARS "\t\techo $i\n"> <LIT_CHARS "\tdone >> file &&\n"> <LIT_CHARS "\tgit commit -m more file\t&&\n"> <LIT_CHARS "\tgit rebase --whitespace=fix HEAD^^ &&\n"> <LIT_CHARS "\ttest_cmp file expect-beginning\n">]} ) (Com {[LIT_CHARS test_done]} ) )