projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
167d6a0
)
setlocalversion: add git-svn support
author
Peter Korsgaard
<jacmet@sunsite.dk>
Tue, 2 Dec 2008 20:58:06 +0000
(21:58 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Wed, 3 Dec 2008 21:58:30 +0000
(22:58 +0100)
Print svn revision in addition to git info on git-svn repos.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/setlocalversion
patch
|
blob
|
blame
|
history
diff --git
a/scripts/setlocalversion
b/scripts/setlocalversion
index 81d984b91594de4c69122f3b1d30d5e7bf133ccb..f6946cf99ce1bd0a06f9835157f39d4b2b80e971 100755
(executable)
--- a/
scripts/setlocalversion
+++ b/
scripts/setlocalversion
@@
-19,6
+19,11
@@
if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
fi
fi
+ # Is this git on svn?
+ if git config --get svn-remote.svn.url >/dev/null; then
+ printf -- '-svn%s' "`git-svn find-rev $head`"
+ fi
+
# Are there uncommitted changes?
git update-index --refresh --unmerged > /dev/null
if git diff-index --name-only HEAD | grep -v "^scripts/package" \