Skip to content

Commit

Permalink
[wpiformat] Make changed file list ignore upstream changes (#259)
Browse files Browse the repository at this point in the history
The changed file detection now compares HEAD against the merge base of
HEAD and main instead of main.
  • Loading branch information
auscompgeek authored Oct 9, 2023
1 parent b3e5a67 commit d793438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiformat/wpiformat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def main():

# Create list of all changed files
output_list = subprocess.check_output(
["git", "diff", "--name-only", main_branch], encoding="ascii"
["git", "diff", "--name-only", f"{main_branch}..."], encoding="ascii"
).split()
changed_file_list = [root_path + os.sep + line.strip() for line in output_list]

Expand Down

0 comments on commit d793438

Please sign in to comment.