diff options
author | David Williams | 2014-06-01 17:30:43 +0000 |
---|---|---|
committer | David Williams | 2014-06-01 17:30:43 +0000 |
commit | 129000f969e21883fee9088847e7af77bbe09df9 (patch) | |
tree | e3f56353a6c5006e0b5590f84a15cc4ee0c5ee5c /production/git-doclog | |
parent | 413d41cf335e568ce6380ead10da152a3d83afc8 (diff) | |
download | eclipse.platform.releng.aggregator-129000f969e21883fee9088847e7af77bbe09df9.tar.gz eclipse.platform.releng.aggregator-129000f969e21883fee9088847e7af77bbe09df9.tar.xz eclipse.platform.releng.aggregator-129000f969e21883fee9088847e7af77bbe09df9.zip |
Bug 409076 - establish standard formatting
removed trailing spaces and tabs
Diffstat (limited to 'production/git-doclog')
-rwxr-xr-x | production/git-doclog | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/production/git-doclog b/production/git-doclog index 1c88bc12c..bb498e9a0 100755 --- a/production/git-doclog +++ b/production/git-doclog @@ -1,15 +1,15 @@ #!/usr/bin/env bash - + GITCOMMIT=$( git rev-parse HEAD ) #GITDATE=$( git log -1 --format="%H%n%aD" --date=short ) -# we go to a lot of trouble here, just to get +# we go to a lot of trouble here, just to get # short form, in prettiest way, using git commands # as much a possible, instead of heuristic parsing. -git symbolic-ref --quiet HEAD >/dev/null -if (( $? == 0 )) -then - GITBRANCH=$( git rev-parse --abbrev-ref HEAD ) +git symbolic-ref --quiet HEAD >/dev/null +if (( $? == 0 )) +then + GITBRANCH=$( git rev-parse --abbrev-ref HEAD ) else GITBRANCH='[Not on a branch]' fi @@ -22,14 +22,14 @@ SHORT_TAG=${GITTAG##*/} #echo "pwd: ${PWD}" REPONAME=${PWD##*/} -case "$REPONAME" in - eclipse.platform*) +case "$REPONAME" in + eclipse.platform*) REPOROOT="platform";; - eclipse.jdt*) + eclipse.jdt*) REPOROOT="jdt";; - eclipse.pde*) + eclipse.pde*) REPOROOT="pde";; - rt.equinox*) + rt.equinox*) REPOROOT="equinox";; *) echo "WARNING: unrecognized reponame pattern for $REPONAME";; @@ -39,12 +39,12 @@ esac #echo "git_dir: $GIT_DIR" # git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc # git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git -REMOTETAG=$( git ls-remote --tags git://git.eclipse.org/gitroot/${REPOROOT}/${REPONAME}.git $SHORT_TAG ) -if [[ -z "${REMOTETAG}" ]] +REMOTETAG=$( git ls-remote --tags git://git.eclipse.org/gitroot/${REPOROOT}/${REPONAME}.git $SHORT_TAG ) +if [[ -z "${REMOTETAG}" ]] then REMOTETAG='[No tag in remote (canonical) repository]' else REMOTETAG=${REMOTETAG##*/} fi -#echo "REMOTETAG: $REMOTETAG" +#echo "REMOTETAG: $REMOTETAG" printf " %s \t%s \t%s \t%s \t%s \n" "$REPONAME $GITCOMMIT $GITBRANCH $SHORT_TAG $REMOTETAG" |