X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=scripts%2Fvl;fp=scripts%2Fvl;h=0000000000000000000000000000000000000000;hb=30c9bf42074e6b4ff0fced70041c0def07e23aa1;hp=a6807427850125010490f5a6de64c983c2ef7b63;hpb=9c4b89cf4f92b8f02fa2d42016b553d24536030f;p=hvutilities.git diff --git a/scripts/vl b/scripts/vl deleted file mode 100755 index a680742..0000000 --- a/scripts/vl +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -VCS_SUPPORTED="GIT, Subversion or Mercurial" - -GIT_LOG_BASE_OPTS="--oneline" -HG_LOG_BASE_OPTS="--follow" - -print_usage() -{ - echo "$(basename $0) -- log for version control (${VCS_SUPPORTED})." - echo "Usage: $(basename $0) [OPTIONS...]" -} - -if [ "x${1}" = "x--help" ]; then - print_usage - exit 1 -fi - -SVN_LOG_REV_INFO_COLOR=$(echo -e '\033[1;31m') # Red -SVN_LOG_SEPARATION_COLOR=$(echo -e '\033[1;32m') # Green -NORMAL=$(echo -e '\033[0m') - -if git diff 1> /dev/null 2>&1; then - git log ${GIT_LOG_BASE_OPTS} "$@" -elif svn diff 1> /dev/null 2>&1; then - # Colore les lignes --------- en vert - # Colore en rouge les infos de la révision - svn log "$@" | sed -e "s/^-\+$/${SVN_LOG_SEPARATION_COLOR}\0${NORMAL}/" \ - -e "s/^r[0-9]\+.\+$/${SVN_LOG_REV_INFO_COLOR}\0${NORMAL}/" | less -RFX -elif hg status 1> /dev/null 2>&1; then - hg glog ${HG_LOG_BASE_OPTS} "$@" -else - echo "Not a ${VCS_SUPPORTED} repository" - exit 1 -fi