chiark / gitweb /
Add 'stg cp' command.
authorYann Dirson <ydirson@altern.org>
Mon, 12 Mar 2007 22:44:21 +0000 (22:44 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 12 Mar 2007 22:44:21 +0000 (22:44 +0000)
commitd5ae21737377436f19b93b0f43443b47f2f23e54
tree15c520936815c439e9d3892844d995d2cddb9666
parent6d248aced4351b3e0a19e26fae65ca400a7d2884
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 <ydirson@altern.org>
Documentation/stg-cp.txt [new file with mode: 0644]
Documentation/stg.txt
contrib/stgit-completion.bash
stgit/commands/copy.py [new file with mode: 0644]
stgit/git.py
stgit/main.py