-
Notifications
You must be signed in to change notification settings - Fork 443
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
migration of svn-ignore to .gitignore #14
Comments
|
imho "propget svn:ignore -R" gets all the ignores recursively. of course in a useless format, but after altering it suitable for git, it seems to work. |
@phaidros7 - top tip! I used it like this: svn propget svn:ignore -R > .gitignore |
Seems like a nice thing to add. Pull requests are welcome if you've already done the work. |
This would be nice indeed. However, I'm not sure I like this approach. Setting every ignore in a central file is a simple solution but by doing it with isolated .gitignore files in each directory it would also solve a different related issue: empty directories are not imported into git (they are oddly not supported in git). For logging and caching logs in our frameworks, we have "svn:ignore *" and that keeps those directories empty, which then are not imported into git. But if we use ".gitignore *" in each folder, they would be imported since they won't be empty anymore. I've created a simple oneliner that helps me achieve what I was talking about. |
After 2 years this is still an issue. Any plans on fixing. Without this I got every empty folder with "svn:ignore" property set to it removed in each tag/branch of imported repository. |
It seems, that Also |
Right now I don't see other way, rather then for each branch/tag produced by "git svn" command do a single commit with all |
Um, this seem to me like an super easy solution... simply make a .gitignore inside each folder, populated with its svn ignore properties. There doesn't need to be some complicated aggregation of everything into a root level .gitignore |
would be nice to have, else I always do this after svn2git:
svn propget svn:ignore -R svn://host/repo > .gitignore
git add .gitignore
git commit -m 'Convert svn:ignore properties to .gitignore.'
The text was updated successfully, but these errors were encountered: