projects
/
bachelor-thesis
/
roomba_tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
svnrevision.sh: also check for git-svn if there are un-dcomitted changes
[bachelor-thesis/roomba_tests.git]
/
svnrevision.sh
diff --git
a/svnrevision.sh
b/svnrevision.sh
index
c90f410
..
f4e014d
100755
(executable)
--- a/
svnrevision.sh
+++ b/
svnrevision.sh
@@
-7,7
+7,9
@@
stat=$(svn status 2>&1|grep '^M')
# if that fails, try git-svn
if [ -z "$revision" ]; then
revision=$(git svn info 2>&1|grep Revision|sed 's/Revision: //')
# if that fails, try git-svn
if [ -z "$revision" ]; then
revision=$(git svn info 2>&1|grep Revision|sed 's/Revision: //')
- stat=$(git status 2>&1|grep 'modified: ');
+ stat=$(git status 2>&1|grep 'modified: ')
+ # ...and also check if there are un-dcommited changesets
+ stat=$stat$(git diff --stat HEAD git-svn);
fi;
# if that fails, give up
fi;
# if that fails, give up
This page took
0.022624 seconds
and
4
git commands to generate.