public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: James Cloos <cloos@jhcloos.com>
Cc: linux-kernel@vger.kernel.org, David Woodhouse <dwmw2@infradead.org>
Subject: Re: Would it be better for git-commits-head to have -M -C diffs?
Date: Thu, 14 Aug 2008 10:15:41 -0700	[thread overview]
Message-ID: <20080814101541.905ccc8f.randy.dunlap@oracle.com> (raw)
In-Reply-To: <m3ljyzsfg6.fsf@lugabout.jhcloos.org>

On Thu, 14 Aug 2008 12:56:18 -0400 James Cloos wrote:

> Would anyone else prefer to see the posts on the commits list use git's
> copy and move detection?
> 
> Git show (used by the feed-mail-list script) does support -M and -C.
> 
> It does affect the stat section.  The recent commit 758db3f21187 would
> have had its stat changed from looking like:
> 
>  arch/h8300/include/asm/Kbuild              |    1 +
>  arch/h8300/include/asm/a.out.h             |   20 ++
>  arch/h8300/include/asm/atomic.h            |  144 +++++++++++
>                         .
>                         .
>                         .
>  include/asm-h8300/Kbuild                   |    1 -
>  include/asm-h8300/a.out.h                  |   20 --
>  include/asm-h8300/atomic.h                 |  144 -----------
>                         .
>                         .
>                         .
> 
> to looking like:
> 
>  .../asm-h8300 => arch/h8300/include/asm}/Kbuild    |    0 
>  .../asm-h8300 => arch/h8300/include/asm}/a.out.h   |    0 
>  .../asm-h8300 => arch/h8300/include/asm}/atomic.h  |    0 
>  .../asm-h8300 => arch/h8300/include/asm}/auxvec.h  |    0 
>  .../asm-h8300 => arch/h8300/include/asm}/bitops.h  |    0 
>  .../h8300/include/asm}/bootinfo.h                  |    0 
>                         .
>                         .
>                         .
> 
> but would have been 512 lines and 24271 octets instead of 10623 lines
> and 291634 octets.
> 
> I think it would also be useful were the From: header of each message
> set to the commit's Author.  I run each commit through a script to do
> that locally, but the archives would also benefit from that.


or the git-commits list could use what Linus has requested to be used
in pull requests:

Please use "git diff -M --stat --summary" to generate the diffstat:
the -M enables rename detection, and the summary enables a summary of
new/deleted or renamed files.


---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

  reply	other threads:[~2008-08-14 17:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 16:56 Would it be better for git-commits-head to have -M -C diffs? James Cloos
2008-08-14 17:15 ` Randy Dunlap [this message]
2008-08-14 22:09 ` David Woodhouse
2008-08-15 11:31   ` James Cloos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080814101541.905ccc8f.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=cloos@jhcloos.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox