930930 const editorScript = `\
931931#!/usr/bin/env bash
932932
933- cat "${ preparedRegularRebaseTodoFile } "
934-
935933mv -f "${ preparedRegularRebaseTodoFile } " "${ pathToRegularRebaseTodoFile } "
936934
937935 ` ;
@@ -1038,7 +1036,6 @@ mv -f "${preparedRegularRebaseTodoFile}" "${pathToRegularRebaseTodoFile}"
10381036 const commitShaOfNewCurrentCommit = await getCurrentCommit ( ) ;
10391037 const rebaseChangedLocalHistory : boolean = commitShaOfCurrentCommit !== commitShaOfNewCurrentCommit ;
10401038
1041- console . log ( "" ) ;
10421039 console . log ( {
10431040 rebaseChangedLocalHistory, //
10441041 commitShaOfOldCurrentCommit : commitShaOfCurrentCommit ,
@@ -1182,7 +1179,6 @@ async function createInitialEditTodoOfGitStackedRebase(
11821179 // fs.writeFileSync(ff, `${commitsWithBranchBoundaries[last].commit.sha()}`);
11831180
11841181 noop ( commitsWithBranchBoundaries ) ;
1185- console . log ( { commitsWithBranchBoundaries } ) ;
11861182
11871183 const rebaseTodo = commitsWithBranchBoundaries
11881184 . map ( ( { commit, commitCommand, branchEnd } , i ) => {
@@ -1222,8 +1218,6 @@ async function createInitialEditTodoOfGitStackedRebase(
12221218 . filter ( ( xs ) => xs . length )
12231219 . flat ( ) ;
12241220
1225- console . log ( { rebaseTodo } ) ;
1226-
12271221 fs . writeFileSync ( pathToRebaseTodoFile , rebaseTodo . join ( "\n" ) ) ;
12281222
12291223 return ;
@@ -1521,8 +1515,6 @@ exit 1
15211515 fs . rmdirSync ( regularRebaseDirBackupPath , { recursive : true } ) ;
15221516 }
15231517
1524- console . log ( "parsedRegular: %O" , goodRegularCommands ) ;
1525-
15261518 /**
15271519 * TODO - would now have to use the logic from `getWantedCommitsWithBranchBoundaries`
15281520 * & subsequent utils, though adapted differently - we already have the commits,
@@ -1540,15 +1532,12 @@ exit 1
15401532 return [ cmd . commandOrAliasName , commitSHAFull ] ;
15411533 } ) ;
15421534
1543- console . log ( "wantedCommitSHAs %O" , wantedCommitSHAs ) ;
1544-
15451535 // const commits: Git.Commit[] = await Promise.all(
15461536 // wantedCommitSHAs.map((sha) => (console.log("sha %s", sha), Git.Commit.lookup(repo, sha)))
15471537 // );
15481538 const commits : Git . Commit [ ] = [ ] ;
15491539 const commandOrAliasNames : RegularRebaseEitherCommandOrAlias [ ] = [ ] ;
15501540 for ( const [ commandOrAliasName , sha ] of wantedCommitSHAs ) {
1551- console . log ( "%s %s" , commandOrAliasName , sha ) ;
15521541 // const oid = await Git.Oid.fromString(sha);
15531542 const c = await Git . Commit . lookup ( repo , sha ) ;
15541543 commits . push ( c ) ;
@@ -1562,8 +1551,6 @@ exit 1
15621551 commandOrAliasNames
15631552 ) ;
15641553
1565- console . log ( "commitsWithBranchBoundaries %O" , commitsWithBranchBoundaries ) ;
1566-
15671554 return commitsWithBranchBoundaries ;
15681555}
15691556
0 commit comments