This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git add . | |
# Run git diff and capture the output, excluding yarn.lock for js/ts projects | |
diff_output=$(git diff HEAD -- . ':(exclude)yarn.lock') | |
# Prepend the commit message to the diff output | |
commit_message="Output just a properly formatted git commit message from the following, be accurate and concise, no need to specify prefixes, don't assume why changes were made:" | |
full_output="$commit_message\n\n$diff_output" |
OlderNewer