mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +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):
|
def get_counts_for_file(start_tag, end_tag, authors, fname):
|
||||||
try:
|
try:
|
||||||
if end_tag:
|
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:
|
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:
|
if not text:
|
||||||
return None
|
return None
|
||||||
text = text.splitlines()
|
text = text.splitlines()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue