Re: [webkit-dev] git history and the moving to Source

2011-01-04 Thread Balazs Kelemen

That works, thank you guys!
By the way, don't you think the -M switch for git diff should be used by 
webkit-patch?
It's much easier to review a patch with rename and changes with the 
rename detection.


On 01/04/2011 07:26 AM, Evan Martin wrote:

Adam is correct.

To elaborate, there are two rename-related flags of interest:

1) When you git log -- foo/bar.cc, you're saying only show me logs
that apply to the path foo/bar.cc.  This excludes renames implicitly.
  The --follow flag indicates that the filename filter should be
broadened to include renames.

2) If you are viewing diffs (like with -p), you must pass -M etc. just
as you would to git diff for it to find renames.

Here's an interesting thread from Linus on the subject:
   http://kerneltrap.org/mailarchive/git/2009/1/30/4856404/thread
As usual, his opinions on renames are ...interesting.

On Mon, Jan 3, 2011 at 5:56 PM, Adam Barthaba...@webkit.org  wrote:

There's a git option to follow renames.  I think it's --follow, but
some git experts might know better.

Adam


On Mon, Jan 3, 2011 at 5:53 PM, Balazs Kelemenkbal...@webkit.org  wrote:

I have just realized that git log -- filename does not output the
history before the file had been moved to Source. It seems like the
whole git history will be lost after the move. Did we take this into
consideration when we decided to switch to the new directory  structure?
Can we do something to save the history? Or should I just
do something locally to fix this?

Balazs


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] git history and the moving to Source

2011-01-04 Thread Adam Barth
I don't really know enough about that to have an opinion, but you
should feel free to write a patch and we'll get the right folks to
review it.

Adam


On Tue, Jan 4, 2011 at 2:50 AM, Balazs Kelemen kbal...@webkit.org wrote:
 That works, thank you guys!
 By the way, don't you think the -M switch for git diff should be used by
 webkit-patch?
 It's much easier to review a patch with rename and changes with the rename
 detection.

 On 01/04/2011 07:26 AM, Evan Martin wrote:

 Adam is correct.

 To elaborate, there are two rename-related flags of interest:

 1) When you git log -- foo/bar.cc, you're saying only show me logs
 that apply to the path foo/bar.cc.  This excludes renames implicitly.
  The --follow flag indicates that the filename filter should be
 broadened to include renames.

 2) If you are viewing diffs (like with -p), you must pass -M etc. just
 as you would to git diff for it to find renames.

 Here's an interesting thread from Linus on the subject:
   http://kerneltrap.org/mailarchive/git/2009/1/30/4856404/thread
 As usual, his opinions on renames are ...interesting.

 On Mon, Jan 3, 2011 at 5:56 PM, Adam Barthaba...@webkit.org  wrote:

 There's a git option to follow renames.  I think it's --follow, but
 some git experts might know better.

 Adam


 On Mon, Jan 3, 2011 at 5:53 PM, Balazs Kelemenkbal...@webkit.org
  wrote:

 I have just realized that git log -- filename does not output the
 history before the file had been moved to Source. It seems like the
 whole git history will be lost after the move. Did we take this into
 consideration when we decided to switch to the new directory  structure?
 Can we do something to save the history? Or should I just
 do something locally to fix this?

 Balazs


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] git history and the moving to Source

2011-01-04 Thread Evan Martin
git-svn appears to use -C (which implies -M) by default.
See sub generate_diff in .../libexec/git-core/git-svn.

On Tue, Jan 4, 2011 at 2:50 AM, Balazs Kelemen kbal...@webkit.org wrote:
 That works, thank you guys!
 By the way, don't you think the -M switch for git diff should be used by
 webkit-patch?
 It's much easier to review a patch with rename and changes with the rename
 detection.

 On 01/04/2011 07:26 AM, Evan Martin wrote:

 Adam is correct.

 To elaborate, there are two rename-related flags of interest:

 1) When you git log -- foo/bar.cc, you're saying only show me logs
 that apply to the path foo/bar.cc.  This excludes renames implicitly.
  The --follow flag indicates that the filename filter should be
 broadened to include renames.

 2) If you are viewing diffs (like with -p), you must pass -M etc. just
 as you would to git diff for it to find renames.

 Here's an interesting thread from Linus on the subject:
   http://kerneltrap.org/mailarchive/git/2009/1/30/4856404/thread
 As usual, his opinions on renames are ...interesting.

 On Mon, Jan 3, 2011 at 5:56 PM, Adam Barthaba...@webkit.org  wrote:

 There's a git option to follow renames.  I think it's --follow, but
 some git experts might know better.

 Adam


 On Mon, Jan 3, 2011 at 5:53 PM, Balazs Kelemenkbal...@webkit.org
  wrote:

 I have just realized that git log -- filename does not output the
 history before the file had been moved to Source. It seems like the
 whole git history will be lost after the move. Did we take this into
 consideration when we decided to switch to the new directory  structure?
 Can we do something to save the history? Or should I just
 do something locally to fix this?

 Balazs


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev