/[gentoo-x86]/eclass/git-2.eclass
Gentoo

Diff of /eclass/git-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.4 2011/04/24 15:33:56 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/git-2.eclass,v 1.5 2011/05/02 21:15:30 mgorny Exp $
4 4
5# @ECLASS: git-2.eclass 5# @ECLASS: git-2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Tomas Chvatal <scarabeus@gentoo.org> 7# Tomas Chvatal <scarabeus@gentoo.org>
8# @BLURB: Eclass for fetching and unpacking git repositories. 8# @BLURB: Eclass for fetching and unpacking git repositories.
356 356
357 # fetch updates 357 # fetch updates
358 echo "GIT update -->" 358 echo "GIT update -->"
359 echo " repository: ${EGIT_REPO_URI_SELECTED}" 359 echo " repository: ${EGIT_REPO_URI_SELECTED}"
360 # write out message based on the revisions 360 # write out message based on the revisions
361 if [[ "${oldsha1}" != "${cursha1}" ]]; then 361 if [[ "${oldsha}" != "${cursha}" ]]; then
362 echo " updating from commit: ${oldsha}" 362 echo " updating from commit: ${oldsha}"
363 echo " to commit: ${cursha}" 363 echo " to commit: ${cursha}"
364 else 364 else
365 echo " at the commit: ${cursha}" 365 echo " at the commit: ${cursha}"
366 fi 366 fi
368 # print nice statistic of what was changed 368 # print nice statistic of what was changed
369 git --no-pager diff --stat ${oldsha}..${UPSTREAM_BRANCH} 369 git --no-pager diff --stat ${oldsha}..${UPSTREAM_BRANCH}
370 popd > /dev/null 370 popd > /dev/null
371 fi 371 fi
372 # export the version the repository is at 372 # export the version the repository is at
373 export EGIT_VERSION="${cursha1}" 373 export EGIT_VERSION="${cursha}"
374 # log the repo state 374 # log the repo state
375 [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] \ 375 [[ ${EGIT_COMMIT} != ${EGIT_BRANCH} ]] \
376 && echo " commit: ${EGIT_COMMIT}" 376 && echo " commit: ${EGIT_COMMIT}"
377 echo " branch: ${EGIT_BRANCH}" 377 echo " branch: ${EGIT_BRANCH}"
378 echo " storage directory: \"${EGIT_DIR}\"" 378 echo " storage directory: \"${EGIT_DIR}\""

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20