A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
loba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use git diff instead of diff-index for setlocalversion.
[loba.git]
/
setlocalversion
diff --git
a/setlocalversion
b/setlocalversion
index 221f868a6b0a4d3ec0ef606ef991eae71caf382c..30ad27c78f7b3d615ac6c352b6d11ed5730be182 100755
(executable)
--- a/
setlocalversion
+++ b/
setlocalversion
@@
-14,7
+14,7
@@
compute_version()
head=$(git rev-parse --verify --short HEAD)
printf "~git-%s" "$head"
# Check for uncommitted changes
- if git diff
-index
--name-only HEAD | read dummy; then
+ if git diff --name-only HEAD | read dummy; then
printf '%s' "-dirty"
fi