From: Yann Dirson Date: Mon, 12 Mar 2007 22:44:21 +0000 (+0000) Subject: Add 'stg cp' command. X-Git-Tag: v0.13~126 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/d5ae21737377436f19b93b0f43443b47f2f23e54?hp=d5ae21737377436f19b93b0f43443b47f2f23e54 Add 'stg cp' command. Supports copying several files and dirs into existing dir, as well as copying single file or dir with a new name. In the case of directory copying, only copies files known to git (ie, no generated files). Should maybe add --all as alternative. Does not check whether we're going to lose data (overwriting any modified file, or any file not tracked by git). This should probably be done first, before doing any real change (preparing the changes in-memory, then do the work if OK). Will give us --dry-run at no additional cost. Signed-off-by: Yann Dirson ---