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
Git integration? #604
Comments
First, some tricky part: 1, dxf seems to be not really human readable; Let's make a git plugin and see whether users like it. |
Git support should not be dependent on which format you use. You use DXF when you need DXF, you use SVG when you need SVG, you use GIT when you need versioning of whatever you draw. Should be quite easy, when enabled just call git commit "whatever/file_you_just.saved" and optionaly the git push. I don't understand how external images are problem for this. You can have them in repository too. However using relative paths is more than preferable in such case. You don't need diffs to be human readable in order to have versioning working. Also there are ways around problems with human readability of diffs. if someone really needs it, then it can always be solved by custom diff filters in git. |
I mean it's efficient for file format with readable patches. For plain text, while the diff sets may not be easy to understand, storage should be efficient. For binary format, git simply works like a backup tool. |
Backup tool is often all you need when things got messed :-) I have written dokuwiki plugin that can edit SVGs using javascript editor and stores them as plaintext in dokuwiki's versioning backend. What i've found is that to some extent the diffs can make sense, however in real life they are still pretty useless :-) You see some entities/lines added or removed, but more important is what these lines mean. You will not understand from diff that somebody drawn a car park where you wanted to have garden. That's why git has commit comments. So librecad can ask you for commit comment before every commit And once again - there are programs that can do diffs between images and git supports custom settings on how diffs are generated for various filetypes. You can even instruct git to transparently convert DXFs to temporary SVGs (or something else) before doing diff. So you work with DXF, but in git log you see diff of SVGs. It works suprisingly well. So this is absolutely nothing you should be concerned about. There are also few programs to do graphical diffs between images or PDFs, so you can eventualy make quite simple git frontend that will graphicaly show you exact differences between multiple versions of drawing. |
I like that no part of the code tries to access the internet. We already have a lot of options for pushing: |
I have had thoughts to use git for sharing AutoCAD models, but really it`s weird way. Git is good for code, not for binary data, nevertheless it is also possible. |
@r-a-v-a-s you don't have to use push function, you can only commit. But having option to push is not bad. |
you guys might be interested in http://openingdesign.com/about/ an architectural practice who do all their design work via github. |
Is this something that we want to push ? Basically, commiting with whatever git-solution is easy and quick. I mean, I do not see a significant gain in doing this in LibreCAD vs doing in a git-solution (apart from selecting the drawing which would be automatic in LibreCAD). Any one has thoughts on this ? |
Sure, and that's why I close it now 😉 There is many true of what was discussed yet, but also some wide-eyed suggestions. Providing a versioning resp. backup solution, includes a handy restore solution too. So in the end we would need to implement a complex Also, in more than 7 years, there was nobody taking the challenge yet. There exist more than one good |
Just idea... But what if i can commit and push my drawings through librecad? Some people may also want to setup automatic commit to be done when one saves the file.
The text was updated successfully, but these errors were encountered: