Skip to content

Commit df5eac5

Browse files
committed
ui: cidiff: avoid splitting commit message
Turns out rust uses # in commit messages quite a lot. We use {hash}#{subject} as the git format when getting a list. Make sure we split the lines at most once to keep the subject in once piece. Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 37e4f7c commit df5eac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contest/cidiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ def get_commit_list(start_commit, end_commit):
415415
cmd = f"git log --format='%h#%s' {start_commit}..{end_commit}"
416416
commits = run_command(cmd)
417417
# Skip the first line, it's the net/main merge commit
418-
return [x.split("#") for x in reversed(commits.split('\n')[1:])]
418+
return [x.split("#", 1) for x in reversed(commits.split('\n')[1:])]
419419

420420
def get_base_diff(base1, base2):
421421
"""Get the diff between two base commits."""

0 commit comments

Comments
 (0)