Re: [GIT PATCH] USB patches for 2.6.17

Greg KH
2006-06-21T22:54:41Z

On Wed, Jun 21, 2006 at 03:22:19PM -0700, Linus Torvalds wrote:
>
>
> On Wed, 21 Jun 2006, Greg KH wrote:
> >
> > 123 files changed, 4169 insertions(+), 2440 deletions(-)
>
> Btw, I get
>
> 119 files changed, 3888 insertions(+), 2159 deletions(-)
>
> Why? Becuause my default pull script has rename detection enabled, and I
> get:
>
> rename include/linux/{usb_cdc.h => usb/cdc.h} (100%)
> rename include/linux/{usb_input.h => usb/input.h} (100%)
> rename include/linux/{usb_isp116x.h => usb/isp116x.h} (100%)
> rename include/linux/{usb_sl811.h => usb/sl811.h} (71%)
>
> which explains the off-by-four number (and the smaller number of
> lines changed).
>
> Just out of interest, could you enable that in your scripts too, so that
> renames don't show up as huge deletes/creates (well, in this case, thet
> were pretty small files, but you get the idea)?

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...

thanks,

greg k-h