diff --git a/backend/script.sh b/backend/script.sh deleted file mode 100755 index 353ac5be285..00000000000 --- a/backend/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# Number of recent branches to show -num_branches=5 - -# Get recent branches -recent_branches=$(git for-each-ref --sort=-committerdate --format='%(refname:short)' --count=$num_branches refs/heads/) - -# Loop through recent branches -for branch in $recent_branches; do - echo "Branch: $branch" - echo "Last commit: $(git log -1 --pretty=format:"%cr" $branch)" - - # Get the number of commits ahead/behind master - ahead_behind=$(git rev-list --left-right --count master...$branch) - ahead=$(echo $ahead_behind | cut -f2 -d$'\t') - behind=$(echo $ahead_behind | cut -f1 -d$'\t') - - echo "Commits ahead of master: $ahead" - echo "Commits behind master: $behind" - - # Get the number of lines changed compared to master - lines_changed=$(git diff --shortstat master...$branch) - echo "Changes compared to master: $lines_changed" - echo "----------------------------------------" -done diff --git a/backend/test.sh b/backend/test.sh deleted file mode 100755 index 8ee2e37982c..00000000000 --- a/backend/test.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Output CSV file -output_file="branch_commits.csv" - -# Write CSV header -echo "Branch,Commit Hash,Author,Date,Subject" > "$output_file" - -# Get all local branches except main -branches=$(git for-each-ref --format='%(refname:short)' refs/heads/ | grep -v '^main$') - -# Loop through each branch -for branch in $branches; do - # Get commits for the branch - commits=$(git log main..$branch --pretty=format:"%H,%an,%ad,%s" --date=short) - - # If there are commits, add them to the CSV - if [ ! -z "$commits" ]; then - while IFS= read -r commit; do - echo "$branch,$commit" >> "$output_file" - done <<< "$commits" - fi -done - -echo "CSV file created: $output_file"