Skip to content
Discussion options

You must be logged in to vote

@j-lakeman -- you're thinking about this a little wrong. Let's say GIT=~/my_git_projects and you have this folder structure:

~/my_git_projects
~/my_project
~/my_project/.git
~/another_project
~/another_project/.git
~/other_dir

What you want is to move my_project and another_project into ~/my_git_projects. (Right?) But your rule is matching my_project/.git and another_project/.git, and then doing a move action on those subdirectories.

Instead, you want a rule that will match ~/my_project and ~/another_project, but not ~/other_dir, because it doesn't have a .git subdirectory. There is no filter that means "match directory if it has a file or subdirectory named X," so you'll need a python f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@j-lakeman
Comment options

@joev2
Comment options

@j-lakeman
Comment options

Answer selected by j-lakeman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants