Skip to content

Commit d56626b

Browse files
committed
Dump some git checkout status before doing code formatting
1 parent e99f242 commit d56626b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

llvm/utils/git/code-format-helper.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
from github import IssueComment, PullRequest
1919

2020

21+
# HACK for debugging...
22+
for cmd in ["git log -n2", "git show", "git show HEAD~1", "git show HEAD^1", "git show HEAD^2", "ls llvm/utils/git"]:
23+
print(f"=== Running {cmd}")
24+
sys.stdout.flush()
25+
os.system(cmd)
26+
print("^^^^^^")
27+
sys.stdout.flush()
28+
29+
2130
class FormatHelper:
2231
COMMENT_TAG = "<!--LLVM CODE FORMAT COMMENT: {fmt}-->"
2332
name: str

0 commit comments

Comments
 (0)