Skip to content

Commit 53c97f9

Browse files
committed
fix: remove the excessive logging
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent 0939e52 commit 53c97f9

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

git-stacked-rebase.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,6 @@ EOF
915915
const editorScript = `\
916916
#!/usr/bin/env bash
917917
918-
cat "${preparedRegularRebaseTodoFile}"
919-
920918
mv -f "${preparedRegularRebaseTodoFile}" "${pathToRegularRebaseTodoFile}"
921919
922920
`;
@@ -1025,7 +1023,6 @@ mv -f "${preparedRegularRebaseTodoFile}" "${pathToRegularRebaseTodoFile}"
10251023
const commitShaOfNewCurrentCommit = await getCurrentCommit();
10261024
const rebaseChangedLocalHistory: boolean = commitShaOfCurrentCommit !== commitShaOfNewCurrentCommit;
10271025

1028-
console.log("");
10291026
console.log({
10301027
rebaseChangedLocalHistory, //
10311028
commitShaOfOldCurrentCommit: commitShaOfCurrentCommit,
@@ -1169,7 +1166,6 @@ async function createInitialEditTodoOfGitStackedRebase(
11691166
// fs.writeFileSync(ff, `${commitsWithBranchBoundaries[last].commit.sha()}`);
11701167

11711168
noop(commitsWithBranchBoundaries);
1172-
console.log({ commitsWithBranchBoundaries });
11731169

11741170
const rebaseTodo = commitsWithBranchBoundaries
11751171
.map(({ commit, commitCommand, branchEnd }, i) => {
@@ -1209,8 +1205,6 @@ async function createInitialEditTodoOfGitStackedRebase(
12091205
.filter((xs) => xs.length)
12101206
.flat();
12111207

1212-
console.log({ rebaseTodo });
1213-
12141208
fs.writeFileSync(pathToRebaseTodoFile, rebaseTodo.join("\n"));
12151209

12161210
return;
@@ -1504,8 +1498,6 @@ exit 1
15041498
fs.rmdirSync(regularRebaseDirBackupPath, { recursive: true });
15051499
}
15061500

1507-
console.log("parsedRegular: %O", goodRegularCommands);
1508-
15091501
/**
15101502
* TODO - would now have to use the logic from `getWantedCommitsWithBranchBoundaries`
15111503
* & subsequent utils, though adapted differently - we already have the commits,
@@ -1523,15 +1515,12 @@ exit 1
15231515
return [cmd.commandOrAliasName, commitSHAFull];
15241516
});
15251517

1526-
console.log("wantedCommitSHAs %O", wantedCommitSHAs);
1527-
15281518
// const commits: Git.Commit[] = await Promise.all(
15291519
// wantedCommitSHAs.map((sha) => (console.log("sha %s", sha), Git.Commit.lookup(repo, sha)))
15301520
// );
15311521
const commits: Git.Commit[] = [];
15321522
const commandOrAliasNames: RegularRebaseEitherCommandOrAlias[] = [];
15331523
for (const [commandOrAliasName, sha] of wantedCommitSHAs) {
1534-
console.log("%s %s", commandOrAliasName, sha);
15351524
// const oid = await Git.Oid.fromString(sha);
15361525
const c = await Git.Commit.lookup(repo, sha);
15371526
commits.push(c);
@@ -1545,8 +1534,6 @@ exit 1
15451534
commandOrAliasNames
15461535
);
15471536

1548-
console.log("commitsWithBranchBoundaries %O", commitsWithBranchBoundaries);
1549-
15501537
return commitsWithBranchBoundaries;
15511538
}
15521539

parse-todo-of-stacked-rebase/parseTodoOfStackedRebase.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@ export function parseTodoOfStackedRebase(
1313
const editedRebaseTodo: string = fs.readFileSync(pathToStackedRebaseTodoFile, { encoding: "utf-8" });
1414
const linesOfEditedRebaseTodo: string[] = editedRebaseTodo.split("\n").filter((line) => !!line);
1515

16-
console.log({ linesOfEditedRebaseTodo });
17-
1816
return validate(linesOfEditedRebaseTodo);
1917
}

0 commit comments

Comments
 (0)