[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Magit and seeing the whole diff
From: |
Andrea Crotti |
Subject: |
Re: Magit and seeing the whole diff |
Date: |
Mon, 20 Dec 2010 14:06:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) |
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> () Andrea Crotti <andrea.crotti.0@gmail.com>
> () 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))
I don't quite get what you mean...
How does this integrates with magit/emacs?
You keep a buffer with the diff and you revert it sometimes?