-
Notifications
You must be signed in to change notification settings - Fork 346
Contributing
(For a list of ideas from small to big to hack on, jump to Ideas)
We are very open and accepting, so you may just try to throw code at us and then we can work out details together!
Having said that, we generally try to follow the "Fork & pull" Github model. In steps that would be:
-
Fork github.com/haskell/haskell-mode.
-
Clone the repo locally:
git clone [email protected]/xxx/haskell-mode
where
xxx
is your account at github.com. -
Make the fixes.
-
Make a branch:
git checkout -b pr-foobar-improvements
-
Commit:
git commit -a -m "Super important foobar improvements"
-
Push to your repo at github.
git push
-
Create a pull request by logging into github.com and clicking some green buttons.
So far so good. Pull request is there, it might require some polishing
-
Add upstream remote:
git remote add haskell git://github.com/haskell/haskell-mode.git
-
Rebase on top of current master in upstream repo:
git fetch haskell git rebase haskell/master
-
Pushing updated commits:
git push origin +pr-foobar-improvements
Note that it is ok to update commits until they are merged into master. After that point they are permanent history and should never ever change.
Once your PR was merged, delete your branch:
git push origin :pr-foobar-improvements
git fetch --prune
The haskell-mode
is distributed under GNU General Public License1, please follow these instructions:
-
Update
Copyright
notice — add your name, and update year if needed when modifying existing files. -
When adding new files place copyright notice followed by copyright permission statement:
This file is part of haskell-mode package. Foobar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Foobar is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Foobar. If not, see <http://www.gnu.org/licenses/>.
More details about GNU GPL - How to use GNU licenses for your own software.