Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[ci] tmp: debug license-header

crueteref2d0a9076b5
diff --git a/.ci/license-header.rb b/.ci/license-header.rb
index dda5522026..8e76366064 100644
--- a/.ci/license-header.rb
+++ b/.ci/license-header.rb
@@ -7,9 +7,16 @@ license_header = <<~EOF
EOF
print 'Getting branch changes...'
+puts "\n"
branch_name = `git rev-parse --abbrev-ref HEAD`.chomp
+print branch_name
+puts "\n"
branch_commits = `git log #{branch_name} --not master --pretty=format:"%h"`.split("\n")
+print branch_commits
+puts "\n"
branch_commit_range = "#{branch_commits[-1]}^..#{branch_commits[0]}"
+print branch_commit_range
+puts "\n"
branch_changed_files = `git diff-tree --no-commit-id --name-only #{branch_commit_range} -r`.split("\n")
puts 'done'