1 |
robbat2 09/04/06 00:00:47 |
2 |
|
3 |
Modified: git.eclass |
4 |
Log: |
5 |
If you just pass --no-pager to git, you can avoid the need to pipe to cat. |
6 |
|
7 |
Revision Changes Path |
8 |
1.18 eclass/git.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/git.eclass?rev=1.18&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/git.eclass?rev=1.18&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/git.eclass?r1=1.17&r2=1.18 |
13 |
|
14 |
Index: git.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/git.eclass,v |
17 |
retrieving revision 1.17 |
18 |
retrieving revision 1.18 |
19 |
diff -p -w -b -B -u -u -r1.17 -r1.18 |
20 |
--- git.eclass 5 Apr 2009 20:22:15 -0000 1.17 |
21 |
+++ git.eclass 6 Apr 2009 00:00:47 -0000 1.18 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2009 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.17 2009/04/05 20:22:15 scarabeus Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/git.eclass,v 1.18 2009/04/06 00:00:47 robbat2 Exp $ |
27 |
|
28 |
# @ECLASS: git.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -56,7 +56,7 @@ EGIT_UPDATE_CMD="git fetch -f -u" |
31 |
# @ECLASS-VARIABLE: EGIT_DIFFSTAT_CMD |
32 |
# @DESCRIPTION: |
33 |
# Git command for diffstat. |
34 |
-EGIT_DIFFSTAT_CMD="git diff --stat" |
35 |
+EGIT_DIFFSTAT_CMD="git --no-pager diff --stat" |
36 |
|
37 |
# @ECLASS-VARIABLE: EGIT_OPTIONS |
38 |
# @DESCRIPTION: |
39 |
@@ -224,7 +224,7 @@ git_fetch() { |
40 |
${elogcmd} " at the commit: ${cursha1}" |
41 |
fi |
42 |
# piping through cat is needed to avoid a stupid Git feature |
43 |
- ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} | cat |
44 |
+ ${EGIT_DIFFSTAT_CMD} ${oldsha1}..${EGIT_BRANCH} |
45 |
fi |
46 |
|
47 |
if ${EGIT_REPACK} || ${EGIT_PRUNE} ; then |