In the past, I've been able to just checkout the git repository, switch to the master branch, run `git pull origin master` and the checkout the develop branch, and run `git pull origin develop`. That usually grabs the latest version of the repository for me.
Regarding the indentation, I think the majority of the code is indented with tabs. Personally, I prefer using 2 spaces, but I defer all style decisions to David. I know when I use CLion as an IDE, there is an option to match the current file's indentation style. I'm not sure how to set that up in emacs...
I agree with the documentation on the templates, but you aren't restricted to using just the otemplate machinery. I know for a while I was using boostache(https://github.com/cierelabs/boostache
) in one of my projects. I also experimented with embedding libclang and using it to compile C++ code on the fly to generate the output. Onion is pretty flexible this way.
Sent: Saturday, June 09, 2018 7:02 AM
To: onion-dev <onio...@coralbits.com
Subject: [onion-dev] helping external contributions (tips)
Hello David and all,
It would be nice if the wiki (or even some CONTRIBUTING.md file on top of source tree) contained some instructions to help external contributions. In particular:
* the exact steps to pull or rebase the current onion master (on e.g. some old clone of onion I made two years ago). I know you told me a few years ago how to do that, but I lost that email and had to remove my onion fork on my github and recreate it (not a big deal, but a bit annoying).
* the exact indentation style you want me (or other contributors) to use. I even made https://github.com/davidmoreno/onion/issues/225
related to that. I cannot setup my emacs editor to indent according to your will (and that gets pretty annoying, since I have to reindent manually every line). If there where some automatic way to reindent C code, it would help me (and other contributors) a lot. BTW, I would prefer onion to switch to GNU indentation style, but that would significantly change all the code, so I leave that decision to you. Feel free to keep the current indentation if you are able to document it, and to provide some way of enforcing it (e.g. a shell script or make target to indent code according to your tastes, etc...)
I also have a question about significant contributions to Onion. I am funded by the H2020 Chariot project. http://chariotproject.eu/
and my work there has even some provision for contributing to outside projects (including Onion and GCC) relevant for my tasks. I can easily contribute small things (e.g. I am working on https://github.com/davidmoreno/onion/issues/224
which I hope to solve in a few days at most) but if I wanted to contribute more significantly to Onion (e.g. something needing more than a few days of my work time), I would need to be able to add something (in comments, documentations, or git commit logs) like "this contribution by Basile Starynkevitch to Onion is funded by the European Union, Horizon H2020 programme, http://chariotproject.eu/
project, under Grant Agreement No 780075". Is that ok for you?
(I don't promise to make significant contributions to Onion, but if I do, I need to be able to put such a sentence, and my decision to perhaps contribute to Onion depends on the ability to make such a comment visible; actually, even putting that comments in tiny git commit logs would help me)
BTW, I really think that your template machinery should be documented a bit more, and independently of Django. You should publish a list of directives and have a test case (or examples) for every template language feature.
Basile STARYNKEVITCH == http://starynkevitch.net/Basile
opinions are mine only - les opinions sont seulement miennes
Bourg La Reine, France
You received this message because you are subscribed to the Google Groups "onion-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailto:onion-dev+...@coralbits.com
To post to this group, send email to mailto:onio...@coralbits.com
Visit this group at https://groups.google.com/a/coralbits.com/group/onion-dev/
For more options, visit https://groups.google.com/a/coralbits.com/d/optout