Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

rsms/kod

Repository files navigation

Kod -- a programmers' editor for OS X

A modern and open universal text editor for programmers on Mac OS X.

If you want to use Kod, simply download the latest "stable" version fromhttp://kodapp /download/

Development

Get the source (for building):

git clone --recursive https://github /rsms/kod.git
git remote add upstream https://github /rsms/kod.git

Get the source (for contributing):

If you want to contribute to the project you will have tomake a fork.Then do this:

git clone --recursive git@github:MyUsername/kod.git
git remote add upstream https://github /rsms/kod.git

Checkout and build libcss:

This step isn't entirely necessary, but the first time you run this it will check out a bunch of subversion repositories which might take a few minutes.

deps/libcss/build.sh

Start hacking:

open kod.xcodeproj

Refreshing your clone

Since Kod is made up of a main repository as well as a few sub-repositories (git submodules) a simplegit pullis not sufficient to update your source tree clone. Use theupdate.shshell script for this:

./update.sh

It will fetch updates from the upstream repository (rsms/kod). Then you should merge the branches you want to use, for example something like so:

git merge upstream/master

You can use it to update from your own repository by calling it like this:

./update.sh origin

Contributing

The main Kod source tree is hosted on git (a popularDVCS), thus you should create a fork of the repository in which you perform development. Seehttp://help.github /forking/.

We prefer that you send apull requesthere on GitHubwhich will then be merged into the official main line repository. You need to sign the Kod CLA to be able to contribute (see below).

Also, in your first contribution, add yourself to the end ofAUTHORS.md(which of course is optional).

Creating and submitting a patch

As mentioned earlier in this article, we prefer that you send apull requeston GitHub.

  1. Create a fork of the upstream repository by visitinghttps://github /rsms/kod/fork.If you feel unsecure, here's a great guide:http://help.github /forking/

  2. Clone of your repository:git clone https://yourusername@github /yourusername/kod.git

  3. This is important: Create a so-calledtopic branch:git checkout -tb name-of-my-patchwhere "name-of-my-patch" is a short but descriptive name of the patch you're about to create. Don't worry about the perfect name though -- you can change this name at any time later on.

  4. Hack! Make your changes, additions, etc and commit them.

  5. Send a pull request to the upstream repository's owner by visiting your repository's site at github (i.e.https://github /yourusername/kod) and press the "Pull Request" button. Here's a good guide on pull requests:http://help.github /pull-requests/

Use one topic branch per feature-- don't mix different kinds of patches in the same branch. Instead, merge them all together into your master branch (or develop everything in your master and then cherry-pick-and-merge into the different topic branches). Git provides for an extremely flexible workflow, which in many ways causes more confusion than it helps you when new to collaborative software development. The guides provided by GitHub athttp://help.github /are a really good starting point and reference. If you are fi xing a ticket, a convenient way to name the branch is to use the URL slug from the bug tracker, like this:git checkout -tb 53-feature-manually-select-language.

Contributor License Agreement

Before we can accept any contributions to Kod, you need to sign thisCLA:

http://kodapp /cla.html

The purpose of this agreement is to clearly define the terms under which intellectual property has been contributed to Kod and thereby allow us to defend the project should there be a legal dispute regarding the software at some future time.

For a list of contributors, please seeAUTHORSandhttps://github /rsms/kod/contributors

License

See the fileLICENSE