File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
parse-todo-of-stacked-rebase Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Git from "nodegit";
88import { array } from "nice-comment" ;
99
1010import { filenames } from "../filenames" ;
11+ import { combineRewrittenLists } from "../reduce-path" ;
1112
1213import { parseTodoOfStackedRebase } from "./parseTodoOfStackedRebase" ;
1314import { GoodCommand , stackedRebaseCommands } from "./validator" ;
@@ -22,7 +23,8 @@ export function parseNewGoodCommands(
2223
2324 const pathOfRewrittenList : string = path . join ( repo . path ( ) , "stacked-rebase" , filenames . rewrittenList ) ;
2425 const rewrittenList : string = fs . readFileSync ( pathOfRewrittenList , { encoding : "utf-8" } ) ;
25- const rewrittenListLines : string [ ] = rewrittenList . split ( "\n" ) . filter ( ( line ) => ! ! line ) ;
26+ const { combinedRewrittenList } = combineRewrittenLists ( rewrittenList ) ;
27+ const rewrittenListLines : string [ ] = combinedRewrittenList . split ( "\n" ) . filter ( ( line ) => ! ! line ) ;
2628
2729 console . log ( { rewrittenListLines } ) ;
2830
You can’t perform that action at this time.
0 commit comments