Re: Following renames
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Mar 26, 2006, 16:46 UTC
- Message-ID
- <Pine.LNX.4.64.0603260843250.15714@g5.osdl.org>
- In-Reply-To
- <e06fl8$p9f$1@sea.gmane.org>
On Sun, 26 Mar 2006, Jakub Narebski wrote:
> > I wonder what is the most common case in Linux kernel or git. > > 1.) renaming the file in the same directory, old-file.c to new-file.c?
The kernel uses subdirectories extensively, and a lot of renames (most of them, I'd say) is because of that subdirectory structure.
So the same-directory case is the unusual one, I'd say.
> 3.) splitting file into modules, huge-file.c to file1.c, file2.c? > 4.) copying fragment of one file to other? > 5.) moving fragment of code from one file to other?
I'd say that (5) is very common. And (4) happens a lot under certain circumstances (new driver, new architecture, new filesystem..).
Doing (3) happens, but probably less often that it should ;/
Linus