Skip to content

Commit bc1039e

Browse files
author
snaptoken
committed
-
1 parent 4486481 commit bc1039e

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2016, Salvatore Sanfilippo <antirez at gmail dot com>
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
* Redistributions of source code must retain the above copyright notice,
9+
this list of conditions and the following disclaimer.
10+
11+
* Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
19+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
22+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This repo contains the entire source code for each step of
2+
[kilo-tutorial](https://github.com/snaptoken/kilo-tutorial). Each step is
3+
represented by a commit. Each step name (found in the upper-right corner of
4+
each step diff in the [tutorial](http://viewsourcecode.org/snaptoken/kilo)) is
5+
a ref to that step's commit.
6+
7+
If you want to compare your version of `kilo.c` with the version in this repo
8+
for a particular step, say `keypresses`, you could do it like this:
9+
10+
$ git clone https://github.com/snaptoken/kilo-src
11+
$ cd kilo-src
12+
$ git checkout keypresses
13+
$ git diff --no-index -b ../path/to/your/kilo.c kilo.c
14+
15+
`--no-index` lets you use `git diff` as an ordinary diff tool, and `-b` ignores
16+
differences in whitespace, which is important if you use a different indent
17+
style than the one in the tutorial.
18+

0 commit comments

Comments
 (0)