From: Matthieu Moy Date: Mon, 11 Feb 2008 10:18:21 GMT Subject: Re: [RFC/PATCH] Implement git-cp. Message-ID: In-Reply-To: <7vzlu9uu7c.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > Johannes Schindelin writes: > >> If you touch builtin-mv.c already, why not just move cmd_cp() in there? >> It's not like it would be the first cmd_*() function living in the same >> file as other cmd_*() functions. > > Why do we even want "git-cp", especially when git-mv and git-rm > are already pretty much redundant commands? > > Especially, why do we even encourage copy-and-paste? I rarely (let's say: never ;-) ) copy-and-paste a C source file, but there are tons of cases wher I start a file by copying another (typically, a 10 lines long Makefile containing macro definitions and an "include" statement, to be copied in each subdirectory and adapted to reflect the source file name, or starting a .txt file based on a skeleton). I can very well live without a "git cp" command, but I'd use it if it was available. -- Matthieu