lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <12327.1239313897@redhat.com>
Date:	Thu, 09 Apr 2009 22:51:37 +0100
From:	David Howells <dhowells@...hat.com>
To:	Linus Torvalds <torvalds@...ux-foundation.org>,
	catalin.marinas@....com
Cc:	dhowells@...hat.com, akpm@...ux-foundation.org, sam@...nborg.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] FRV: Move to arch/frv/include/asm/

Linus Torvalds <torvalds@...ux-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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ