mirror of
https://github.com/0Nera/BMOSP.git
synced 2024-11-25 18:09:38 +03:00
Добавлены вспомогательные информационные утилиты GIT
This commit is contained in:
parent
4500aa6869
commit
18c2d9f67e
3
scripts/git_changelog.sh
Normal file
3
scripts/git_changelog.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo $(git log --pretty=format:%s ${LAST}..HEAD | grep ':' | sed -re 's/([^:]*)\:/- \`\1\`\:/' | sort)
|
10
scripts/git_version.sh
Normal file
10
scripts/git_version.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=`git rev-parse --short HEAD`
|
||||
|
||||
X=$(git status -s | grep -q '^.M')
|
||||
if [ $? -eq 0 ]; then
|
||||
VERSION="$VERSION"
|
||||
fi
|
||||
|
||||
echo -n $VERSION
|
Loading…
Reference in New Issue
Block a user