From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.help Subject: Re: Magit and seeing the whole diff Date: Sun, 19 Dec 2010 12:05:33 +0100 Message-ID: <87y67m6n0i.fsf@ambire.localdomain> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292757254 3693 80.91.229.12 (19 Dec 2010 11:14:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Dec 2010 11:14:14 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Andrea Crotti Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 19 12:14:10 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUHDN-00043Q-N4 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Dec 2010 12:14:09 +0100 Original-Received: from localhost ([127.0.0.1]:42954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUHAh-0007fP-Dq for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Dec 2010 06:11:23 -0500 Original-Received: from [140.186.70.92] (port=47994 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUH9z-0007X2-TB for help-gnu-emacs@gnu.org; Sun, 19 Dec 2010 06:10:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUH9v-0004Jt-IW for help-gnu-emacs@gnu.org; Sun, 19 Dec 2010 06:10:39 -0500 Original-Received: from smtp206.alice.it ([82.57.200.102]:47124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUH9v-0004Ig-DS for help-gnu-emacs@gnu.org; Sun, 19 Dec 2010 06:10:35 -0500 Original-Received: from ambire.localdomain (80.180.3.137) by smtp206.alice.it (8.5.124.08) id 4C1A268C0CF66881; Sun, 19 Dec 2010 12:10:32 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1PUH53-0001MM-Q7; Sun, 19 Dec 2010 12:05:33 +0100 In-Reply-To: (Andrea Crotti's message of "Sat, 18 Dec 2010 21:21:04 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77675 Archived-At: () Andrea Crotti () Sat, 18 Dec 2010 21:21:04 +0100 Any idea? I find the "git diff*" family of commands too flexible to abstract precisely, when multiple files are involved. For that, i use the simple shell script: sed -i '1,/^####/!d' $0 date +" %F %T" >> $0 #git diff -p --stat $(head -n 1 .last-release) ${1-HEAD} >> $0 git diff -p --stat q qq >> $0 exit 0 #### (progn (shell-command "sh .ttn.diff") (revert-buffer-t-t))