From: Hugo Villeneuve Date: Fri, 21 Jun 2013 18:14:58 +0000 (-0400) Subject: Modifié options de base d'affichage des logs pour hg et git X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d8453cfae1bb2e83b87c9b4500662784932876b7;p=hvutilities.git Modifié options de base d'affichage des logs pour hg et git --- diff --git a/scripts/vl b/scripts/vl index a19a374..a680742 100755 --- a/scripts/vl +++ b/scripts/vl @@ -2,6 +2,9 @@ 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})." @@ -18,14 +21,14 @@ 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 ${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 glog ${HG_LOG_BASE_OPTS} "$@" else echo "Not a ${VCS_SUPPORTED} repository" exit 1