repo.or.cz
/
xbmc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #7918 from Montellese/fix_modal_video_refreshing
[xbmc.git]
/
gitrev.sh
blob
996e384685ec607b4ab6829a329a73163456746a
1
#!/bin/sh
2
N
=
0
3
R
=
""
4
MAX
=
50
5
while
[
$N
-le
$MAX
] && [
"x
$R
"
=
"x"
]
6
do
7
R
=
$
(
git log
-1 --pretty
=
format
:%
b HEAD~
$N
|
awk
'
$2
~ /@([0-9]+)$/ {sub(".*@", "",
$2
); print
$2
}'
)
8
N
=
$
((
$N
+
1
))
9
done
10
if
[
"x
$R
"
!=
"x"
];
then
11
if
[
$N
-gt
1
];
then
12
R
=
$R
\
+
$
((
N-1
))
13
fi
14
echo
$R
15
fi