-
Notifications
You must be signed in to change notification settings - Fork 15
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
Convert .acignore to .gitignore #123
Comments
Hi @veljkosbbb, Sorry for taking so long to reply. Your question is a good one and I'll do my best to give you a good answer. My answer will be biased by personal experience. My knowledge of AccuRev (AR) is getting rusty, since my company converted to Git many years ago. Back then I was highly motivated to remove AR from my life and I have done my best to forget about it since. That said I kind of like the challenge, so here are my thoughts. It seems to me the subject of ignore files is necessarily subjective and opinionated. Each project can use a different way to describe the set of file patterns that are ignored. Some will create a single top-level ignore file that defines patterns that apply globally. Some will create a set of ignore files in each subdirectory with patterns that apply locally. Some will use a mixture of the two: a generic, top-level ignore file along with a few speciflc, lower-level ignore files where it makes more sense. Generally the more complex a repository the more complex the solution. The thing to notice is that all ignore patterns taken together define an abstract pattern space. This pattern space is constructed by parsing input files, can be modified using abstract rules, and written to output files. This isn't a problem limited to AccuRev and Git but we must avoid getting overcomplicated by limiting our scope. On reflection, I think we can define two requirements Requirement 1: Convert a top-level .acignore file into a top-level .gitignore file.
Requirement 2: Convert a lower-level .acignore file into a lower-level .gitignore file.
I would start by trying to satisfy Requirement 1 and then work on Requirement 2, if needed. Has this helped? Maybe you have some example .acignore files that we could take a look at, together. I'm afraid anything I can dream up would be near useless. |
Ping @veljkosbbb |
1 similar comment
Ping @veljkosbbb |
Hi,
is there already implemented method/script that converts automatically or at least partially .acignore file to .gitignore file?
Can you please give us details how this could be achieved?
Thanks a lot!
The text was updated successfully, but these errors were encountered: