projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ajout Mercurial
[hvlinux.git]
/
stage2
/
hv-utilities
/
vd
diff --git
a/stage2/hv-utilities/vd
b/stage2/hv-utilities/vd
index
6d7cb5a
..
9eb09a5
100755
(executable)
--- a/
stage2/hv-utilities/vd
+++ b/
stage2/hv-utilities/vd
@@
-1,8
+1,10
@@
#!/bin/bash
#!/bin/bash
+VCS_SUPPORTED="GIT, Subversion or Mercurial"
+
print_usage()
{
print_usage()
{
- echo "$(basename $0) -- diff for version control (
svn or git
) with color output."
+ echo "$(basename $0) -- diff for version control (
${VCS_SUPPORTED}
) with color output."
echo "Usage: $(basename $0) [OPTIONS...]"
}
echo "Usage: $(basename $0) [OPTIONS...]"
}
@@
-13,9
+15,11
@@
fi
if git diff 1> /dev/null 2>&1; then
git diff "$@"
if git diff 1> /dev/null 2>&1; then
git diff "$@"
-elif
[ -d .svn ]
; then
+elif
svn diff 1> /dev/null 2>&1
; then
svn diff --diff-cmd colordiff -x "-u -w -p" "$@" | less -RFX
svn diff --diff-cmd colordiff -x "-u -w -p" "$@" | less -RFX
+elif hg status 1> /dev/null 2>&1; then
+ hg diff "$@"
else
else
- echo "Not a
GIT or Subversion
repository"
+ echo "Not a
${VCS_SUPPORTED}
repository"
exit 1
fi
exit 1
fi