Re: [RFC/PATCH] Implement git-cp.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> Johannes Schindelin <Johannes.Schindelin@xxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux