awips2/tools/scripts/ucommit
Steve Harris f0466f1c52 Issue #708 - new script for setting up Gerrit hook and aliases
Change-Id: Iabdc5005ed9376e31414429a76898c0798d8e7ff

Former-commit-id: 0df9b2fa12 [formerly 48faf25841] [formerly 492e6fe379] [formerly 209299d1cb [formerly 492e6fe379 [formerly ec3999181ac1f2d2d0ca7f469b69a5bf83633570]]]
Former-commit-id: 209299d1cb
Former-commit-id: 1b1024c81933c1baa14f7f1635db43dc34a0b75e [formerly 2a31a4c3e9]
Former-commit-id: 09e2faee72
2012-06-22 11:39:00 -05:00

14 lines
269 B
Bash

#!/bin/bash
if [ -z "$1" ]
then
echo "Enter a commit message in the form: 'Issue #xxx did something'"
else
# Add all files to index
git add -A
# Commit using first argument as message
git commit -m "$1"
git status
fi