3 # create_patch.sh - Creates an enhancement patch based on the current Git changes
8 echo "Usage: $0 patch_file"
9 echo ' Creates a patch file based on the changes made to the current directory'
13 # Make sure this is a git repository
16 echo 'Error: The current directory is not a Git repository.'
20 # 'git diff' is stupid and doesn't show new untracked files, so we must add them first.
23 git
diff -p --staged > "$1"