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

Diff of /eclass/git.eclass

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

Revision 1.17 Revision 1.18
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.17 2009/04/05 20:22:15 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/git.eclass,v 1.18 2009/04/06 00:00:47 robbat2 Exp $
4 4
5# @ECLASS: git.eclass 5# @ECLASS: git.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Tomas Chvatal <scarabeus@gentoo.org> 7# Tomas Chvatal <scarabeus@gentoo.org>
8# Donnie Berkholz <dberkholz@gentoo.org> 8# Donnie Berkholz <dberkholz@gentoo.org>
54EGIT_UPDATE_CMD="git fetch -f -u" 54EGIT_UPDATE_CMD="git fetch -f -u"
55 55
56# @ECLASS-VARIABLE: EGIT_DIFFSTAT_CMD 56# @ECLASS-VARIABLE: EGIT_DIFFSTAT_CMD
57# @DESCRIPTION: 57# @DESCRIPTION:
58# Git command for diffstat. 58# Git command for diffstat.
59EGIT_DIFFSTAT_CMD="git diff --stat" 59EGIT_DIFFSTAT_CMD="git --no-pager diff --stat"
60 60
61# @ECLASS-VARIABLE: EGIT_OPTIONS 61# @ECLASS-VARIABLE: EGIT_OPTIONS
62# @DESCRIPTION: 62# @DESCRIPTION:
63# This variable value is passed to clone and fetch. 63# This variable value is passed to clone and fetch.
64: ${EGIT_OPTIONS:=} 64: ${EGIT_OPTIONS:=}
222 ${elogcmd} " to commit: ${cursha1}" 222 ${elogcmd} " to commit: ${cursha1}"
223 else 223 else
224 ${elogcmd} " at the commit: ${cursha1}" 224 ${elogcmd} " at the commit: ${cursha1}"
225 fi 225 fi
226 # piping through cat is needed to avoid a stupid Git feature 226 # piping through cat is needed to avoid a stupid Git feature
227 ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} | cat 227 ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH}
228 fi 228 fi
229 229
230 if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then 230 if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then
231 ebegin "Garbage collecting the repository" 231 ebegin "Garbage collecting the repository"
232 git gc $(${EGIT_PRUNE} && echo '--prune') 232 git gc $(${EGIT_PRUNE} && echo '--prune')

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20