summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-04-06 00:00:47 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-04-06 00:00:47 +0000
commit788609e8253c8a260b6c9b1ed71a499c537ee707 (patch)
tree0587dc0ad35730d1cbd92599a0fd01fa98e39e8b
parentStable on amd64 (diff)
downloadgentoo-2-788609e8253c8a260b6c9b1ed71a499c537ee707.tar.gz
gentoo-2-788609e8253c8a260b6c9b1ed71a499c537ee707.tar.bz2
gentoo-2-788609e8253c8a260b6c9b1ed71a499c537ee707.zip
If you just pass --no-pager to git, you can avoid the need to pipe to cat.
-rw-r--r--eclass/git.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/git.eclass b/eclass/git.eclass
index 3605106807c6..b2150c46219a 100644
--- a/eclass/git.eclass
+++ b/eclass/git.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.17 2009/04/05 20:22:15 scarabeus Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.18 2009/04/06 00:00:47 robbat2 Exp $
# @ECLASS: git.eclass
# @MAINTAINER:
@@ -56,7 +56,7 @@ EGIT_UPDATE_CMD="git fetch -f -u"
# @ECLASS-VARIABLE: EGIT_DIFFSTAT_CMD
# @DESCRIPTION:
# Git command for diffstat.
-EGIT_DIFFSTAT_CMD="git diff --stat"
+EGIT_DIFFSTAT_CMD="git --no-pager diff --stat"
# @ECLASS-VARIABLE: EGIT_OPTIONS
# @DESCRIPTION:
@@ -224,7 +224,7 @@ git_fetch() {
${elogcmd} " at the commit: ${cursha1}"
fi
# piping through cat is needed to avoid a stupid Git feature
- ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} | cat
+ ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH}
fi
if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then