lkml.org 
[lkml]   [2006]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PATCH] USB patches for 2.6.17


On Wed, 21 Jun 2006, Greg KH wrote:
>
> Ok, but how? I'm generating the diffstat in my script with:
>
> git diff origin..HEAD | diffstat -p1 >> $TMP_FILE
>
> Is there a better way to see these renames? In playing around with 'git
> diff' I didn't see how to do it, but I'm probably just not looking for
> the right option...

Look at the "diff-options" documentation.

It's "-M" for "Detect renames" (or use -C, which actually detects copies
too, but that will be somewhat more expensive).

That works with any diff output (ie "git log -p -M" will give log output
with patches and rename detection turned on).

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.061 / U:1.556 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site