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

Diff of /eclass/git.eclass

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

Revision 1.2 Revision 1.3
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.2 2006/12/30 17:17:05 ferdy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.3 2006/12/30 18:21:02 ferdy 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>
45# 45#
46EGIT_UPDATE_CMD="git fetch -f -u" 46EGIT_UPDATE_CMD="git fetch -f -u"
47 47
48## -- EGIT_DIFFSTAT_CMD: Command to get diffstat output 48## -- EGIT_DIFFSTAT_CMD: Command to get diffstat output
49# 49#
50EGIT_DIFFSTAT_CMD="PAGER=cat git diff --stat" 50EGIT_DIFFSTAT_CMD="git diff --stat"
51 51
52 52
53## -- EGIT_OPTIONS: 53## -- EGIT_OPTIONS:
54# 54#
55# the options passed to clone and fetch 55# the options passed to clone and fetch
202 local oldsha1=$(git rev-parse ${EGIT_BRANCH}) 202 local oldsha1=$(git rev-parse ${EGIT_BRANCH})
203 203
204 ${EGIT_UPDATE_CMD} ${EGIT_OPTIONS} origin ${EGIT_BRANCH}:${EGIT_BRANCH} \ 204 ${EGIT_UPDATE_CMD} ${EGIT_OPTIONS} origin ${EGIT_BRANCH}:${EGIT_BRANCH} \
205 || die "${EGIT}: can't update from ${EGIT_REPO_URI}." 205 || die "${EGIT}: can't update from ${EGIT_REPO_URI}."
206 206
207 # piping through cat is needed to avoid a stupid Git feature
207 ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} 208 ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} | cat
208 fi 209 fi
209 210
210 einfo " local clone: ${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}" 211 einfo " local clone: ${EGIT_STORE_DIR}/${EGIT_CLONE_DIR}"
211 212
212 if ${EGIT_REPACK} ; then 213 if ${EGIT_REPACK} ; then

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20