-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmsu mv
command for moving files while retaining tags
#11
Comments
+1. There are other ways of tracking renames -- for example by hash, like |
Hi, You can easily create a script that does this:
Thanks Since tmsu doesn't explicitly monitor filesystem changes, it'd be nice if — |
Hey, I think this might still be worth adding as a "porcelaine" command. Inexperienced users won't be able to guess |
The problem I have with it is that no commands in TMSU currently make any I think, as its so easy to alias this in the shell, that its not necessary. Thanks,
On Sat, 20 Dec 2014 16:50 Thomas G. notifications@github.com wrote:
|
Please leave a +1 comment on this if you would like to see 'mv' subcommand:
Which would be equivalent to:
|
I'd vote rather for some checked version similar to this: (;but maybe not implemented in shell;) (
([[ -e /new/path ]] && ! [[ -e /old/path ]]) ||
(! [[ -e /new/path ]] && mv /old/path /new/path)
) &&
tmsu repair --manual /old/path new/path Making 'mv' a short and easy to remember fix when the file was already moved on disk. |
OK, after looking at issue #20, I've decided I'll include a set of shell functions with TMSU. Currently I have:
This should allow users to do these operations simply without TMSU itself performing any changes to the managed files on disk. I've created a new issue #35 for this. |
Since tmsu doesn't explicitly monitor filesystem changes, it'd be nice if there were an analogue of
git mv
- a move command that also adds the move to the staging area - for tmsu, that would move the file while updating the database so that no tag info is lost.The text was updated successfully, but these errors were encountered: