mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: format git blame command arguments for better readability
This commit is contained in:
parent
efa83bdf34
commit
63fdf3f3f6
1 changed files with 16 additions and 2 deletions
|
@ -203,9 +203,23 @@ def main():
|
|||
def get_counts_for_file(start_tag, end_tag, authors, fname):
|
||||
try:
|
||||
if end_tag:
|
||||
text = run(["git", "blame", "-M", "-C", "-C", "--abbrev=9", f"{start_tag}..{end_tag}", "--", fname])
|
||||
text = run(
|
||||
[
|
||||
"git",
|
||||
"blame",
|
||||
"-M",
|
||||
"-C",
|
||||
"-C",
|
||||
"--abbrev=9",
|
||||
f"{start_tag}..{end_tag}",
|
||||
"--",
|
||||
fname,
|
||||
]
|
||||
)
|
||||
else:
|
||||
text = run(["git", "blame", "-M", "-C", "-C", "--abbrev=9", f"{start_tag}..HEAD", "--", fname])
|
||||
text = run(
|
||||
["git", "blame", "-M", "-C", "-C", "--abbrev=9", f"{start_tag}..HEAD", "--", fname]
|
||||
)
|
||||
if not text:
|
||||
return None
|
||||
text = text.splitlines()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue