Skip to content

Conversation

@Cbnc-Mk
Copy link

@Cbnc-Mk Cbnc-Mk commented Sep 25, 2025

#!/bin/bash

Usage: ./git-clean-show.sh

Shows only "code" changes, skipping docs and workflows.

commit="$1"

if [ -z "$commit" ]; then
echo "Usage: ./git-clean-show.sh "
exit 1
fi

echo "=== Commit $commit (code-only view) ==="

1. Commit message

git log -1 --pretty=format:"%h %s%n%n%b" $commit
echo

2. Code files only

echo "--- Files changed (code only) ---"
git diff-tree --no-commit-id --name-only -r $commit
| egrep '.(go|py|js|ts|rb|java|c|cpp|cs|php|rs|swift)$' || echo "No code files"
echo

3. Code diff summary

echo "--- Code diff summary ---"
git diff --stat $commit^!
-- ':!.md' ':!.yml' ':!docs/' ':!.json'
echo

4. Full code diff

echo "--- Full code diff ---"
git show $commit -- ':!.md' ':!.yml' ':!docs/' ':!.json'

NielsLeenheer and others added 29 commits April 12, 2022 10:37
Update `webOs` browser infomation
Correct PlayStation brand name and add PS5
Update browsers-chrome.php stable v101 to v115
Update browsers-chrome.php stable v101 to v115
Tests: stop autoloading with the rest of the production build
Copy link
Author

@Cbnc-Mk Cbnc-Mk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.