lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/2] FRV: Move to arch/frv/include/asm/
Date
Linus Torvalds <torvalds@linux-foundation.org> wrote:

> Ahh. I've never used stg. It seems to have some bad defaults.
>
> Also, depending on exactly what "stg" does, it is entirely possible that
> adding that
>
> [diff]
> renames
>
> to your .gitconfig won't help: those kinds of default configuration values
> are (very much on purpose) ignored for certain low-level git commands,
> exactly so that you can do reliable scripting without having to worry
> about some user-specific config files.

That affects 'stg show' but not 'stg mail'.


It looks like 'stg mail' is generating the stats with git-apply on the results
of a diff:

def diffstat(files = None, rev1 = 'HEAD', rev2 = None):
"""Return the diffstat between rev1 and rev2."""
return GRun('apply', '--stat', '--summary'
).raw_input(diff(files, rev1, rev2)).raw_output()

which seems to mean that I can't reduce them from the:

arch/frv/include/asm/Kbuild | 5
arch/frv/include/asm/atomic.h | 198 +++++++++++
arch/frv/include/asm/auxvec.h | 4
arch/frv/include/asm/ax88796.h | 22 +
arch/frv/include/asm/bitops.h | 412 +++++++++++++++++++++++
arch/frv/include/asm/bug.h | 53 +++
...
include/asm-frv/Kbuild | 5
include/asm-frv/atomic.h | 198 -----------
include/asm-frv/auxvec.h | 4
include/asm-frv/ax88796.h | 22 -
include/asm-frv/bitops.h | 412 -----------------------
include/asm-frv/bug.h | 53 ---
...

to the:

{include/asm-frv => arch/frv/include/asm}/Kbuild | 0
{include/asm-frv => arch/frv/include/asm}/atomic.h | 0
{include/asm-frv => arch/frv/include/asm}/auxvec.h | 0
.../asm-frv => arch/frv/include/asm}/ax88796.h | 0
{include/asm-frv => arch/frv/include/asm}/bitops.h | 0
{include/asm-frv => arch/frv/include/asm}/bug.h | 0

though it is using git-diff-tree to generate the rest of the patch, which I
can affect with the diff options, it would appear.

Is there a way to get git-diff to produce just the stats and summary and not
the body of the patch?

David


\
 
 \ /
  Last update: 2009-04-09 23:57    [W:0.057 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site