Skip to content

Commit 964ec8e

Browse files
committed
feat: remove unused merge commit check
1 parent c3f1a3c commit 964ec8e

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

scripts/update-demo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
from util import DEMO
2121
from util import is_ancestor
22-
from util import is_merge_commit
2322
from util import get_current_branch
2423
from util import get_current_commit
2524
from util import get_demo_name

scripts/util.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,6 @@ def is_ancestor(ancestor: str, descendent: str) -> bool:
162162
return False
163163

164164

165-
def is_merge_commit() -> bool:
166-
"""Returns whether the latest commit was a merge commit."""
167-
output: str = git("log", "--format=%P", "-n", "1", "HEAD").stdout.strip()
168-
if output == "":
169-
raise ValueError("No existing commit was found.")
170-
171-
parent_count: int = len(output.split(" "))
172-
return parent_count > 1
173-
174-
175165
def get_current_branch() -> str:
176166
"""Returns the current branch name."""
177167
return git("branch", "--show-current").stdout.strip()

0 commit comments

Comments
 (0)