Skip to content

Commit

Permalink
Script update
Browse files Browse the repository at this point in the history
  • Loading branch information
mephenor committed Apr 15, 2024
1 parent 39c5524 commit 0b86626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/affected_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_top_level_changes(files: list[str]) -> list[str]:
def files_in_diff(full: bool, target: str) -> list[str]:
"""List files in diff."""
# Command to list names of changed files
change_range = f"{target}...HEAD" if full else "HEAD HEAD~1"
change_range = f"{target}...HEAD" if full else "HEAD..HEAD^1"
command = f"git diff --name-only {change_range}"

# Execute the command and capture the output
Expand Down

0 comments on commit 0b86626

Please sign in to comment.