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

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

 



On Sun, Feb 10, 2008 at 12:33:33PM +0000, Johannes Schindelin <Johannes.Schindelin@xxxxxx> wrote:
> But your comment made me think again: It's better to "cp" those 
> files/directories, and then "git add" the relevant ones.  It even avoids 
> stupid mistakes where you commit something you "cp"ed, but did not need.

that's exactly why i think git-cp makes sense. git cp copies the
directory tree and adds the tracked files to the index. if you use cp -R
to copy the directory tree then git add, you can easily add untracked
files, while git cp avoids this.

if you count gitignore, then it's like: why having git commit -a if we
have git add -u and git commit?

(if i'm right you mean: use cp -R and git add, instead of git cp)

thanks
- VMiklos

Attachment: pgpdRDsWGpSKT.pgp
Description: PGP signature


[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