mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(log) process output
This commit is contained in:
parent
8b83032af4
commit
a57d3dd979
1 changed files with 9 additions and 3 deletions
12
shell/log.sh
12
shell/log.sh
|
|
@ -1,8 +1,14 @@
|
|||
#!/bin/sh
|
||||
if test -z $1
|
||||
then
|
||||
echo "log.sh <tag>"
|
||||
echo 'log.sh <tag>'
|
||||
else
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep fix
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep feature
|
||||
echo 'fix:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep fix | sed 's/fix//g'
|
||||
echo '\n'
|
||||
|
||||
echo 'feature:'
|
||||
git log $1..HEAD --pretty=format:"- %s" --grep feature | sed 's/feature//g'
|
||||
|
||||
echo '\n\n'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue