Skip to content
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

Allow sync empty folders from CC to Git repo #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

faisal-hameed
Copy link

Allow syncing empty folders from CC repo to Git repo.
It will create .keep files to track empty folders in Git repo.
Related to Issue#32

@@ -78,6 +79,19 @@ def do_sync(self):
self.dst_root):
copied_file_count += 1
return copied_file_count

def do_sync_empty_folders(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're going to do this I wouldn't have a separate function, I would pass an argument to do_sync to avoid the duplication here.

@charleso
Copy link
Owner

@faisal-hameed Thanks for the PR. I'm not sure how I feel about this. I don't really like empty folders in git in general. The other issue is that you haven't handed the empty folders in rebase.py which is, for me at least, the heart of git-cc, sync.py was just a hack. It also doesn't help that I don't use git-cc any more, so I feel uncomfortable merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants