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

Diff of /eclass/git.eclass

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

Revision 1.8 Revision 1.10
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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/Attic/git.eclass,v 1.8 2007/12/27 01:02:30 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.10 2008/03/30 05:52:27 robbat2 Exp $
4 4
5## --------------------------------------------------------------------------- # 5## --------------------------------------------------------------------------- #
6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org> 6# subversion.eclass author: Akinori Hattori <hattya@gentoo.org>
7# modified for git by Donnie Berkholz <spyderous@gentoo.org> 7# modified for git by Donnie Berkholz <spyderous@gentoo.org>
8# improved by Fernando J. Pereda <ferdy@gentoo.org> 8# improved by Fernando J. Pereda <ferdy@gentoo.org>
93# 93#
94# bootstrap script or command like autogen.sh or etc.. 94# bootstrap script or command like autogen.sh or etc..
95# 95#
96: ${EGIT_BOOTSTRAP:=} 96: ${EGIT_BOOTSTRAP:=}
97 97
98# @ECLASS-VARIABLE: EGIT_OFFLINE
99# @DESCRIPTION:
100# Set this variable to a non-empty value to disable the automatic updating of
101# an GIT source tree. This is intended to be set outside the git source
102# tree by users.
103EGIT_OFFLINE="${EGIT_OFFLINE:-${ESCM_OFFLINE}}"
98 104
99## -- EGIT_PATCHES: 105## -- EGIT_PATCHES:
100# 106#
101# git eclass can apply pathces in git_bootstrap(). 107# git eclass can apply pathces in git_bootstrap().
102# you can use regexp in this valiable like *.diff or *.patch or etc. 108# you can use regexp in this valiable like *.diff or *.patch or etc.
196 ${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \ 202 ${EGIT_FETCH_CMD} ${EGIT_OPTIONS} "${EGIT_REPO_URI}" ${EGIT_PROJECT} \
197 || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}." 203 || die "${EGIT}: can't fetch from ${EGIT_REPO_URI}."
198 204
199 # We use --bare cloning, so git doesn't do this for us. 205 # We use --bare cloning, so git doesn't do this for us.
200 git config remote.origin.url "${EGIT_REPO_URI}" 206 git config remote.origin.url "${EGIT_REPO_URI}"
207 elif [[ -n ${EGIT_OFFLINE} ]] ; then
208 local oldsha1=$(git rev-parse ${EGIT_BRANCH})
209 einfo "git update offline mode -->"
210 einfo " repository: ${EGIT_REPO_URI}"
211 einfo " commit: ${oldsha1}"
201 else 212 else
202 # Git urls might change, so unconditionally set it here 213 # Git urls might change, so unconditionally set it here
203 git config remote.origin.url "${EGIT_REPO_URI}" 214 git config remote.origin.url "${EGIT_REPO_URI}"
204 215
205 # fetch updates 216 # fetch updates

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20