mirror of https://github.com/deuill/grawkit.git
README.md: Add "Status & Examples" section
This commit is contained in:
parent
b194ffae2a
commit
44bc77a8a7
67
README.md
67
README.md
|
@ -8,6 +8,73 @@ A `Makefile` is provided for running tests and producing documentation for Grawk
|
|||
|
||||
A full test-suite is provided (depending only on `make` and `awk`), which should serve as a good example of the existing feature-set.
|
||||
|
||||
## Status & Examples
|
||||
|
||||
Grawkit has basic support for common `git` commands such as `git branch`, `git tag` and `git merge`, allowing for fairly complex graphs. The integrated test-suite serves as an example, presented here:
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Command-Line</th>
|
||||
<th>Generated Graph</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><pre><code>git commit -m "Adding a new commit"
|
||||
git commit</code></pre></th>
|
||||
<th><img src="https://rawgit.com/deuill/grawkit/master/tests/02-master.svg" alt="Master Branch"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><pre><code>git commit -m "Commit on master"
|
||||
git commit -m "More stuff"
|
||||
|
||||
git branch test-stuff
|
||||
git checkout test-stuff
|
||||
|
||||
git commit -m 'Testing stuff'
|
||||
git commit
|
||||
|
||||
git checkout master
|
||||
git commit</code></pre></th>
|
||||
<th><img src="https://rawgit.com/deuill/grawkit/master/tests/03-branch.svg" alt="Simple Branching"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><pre><code>
|
||||
git commit -m "Commit on master"
|
||||
|
||||
git branch test-merging
|
||||
git commit -m "Still on master"
|
||||
|
||||
git checkout test-merging
|
||||
git commit -m 'A sample commit'
|
||||
|
||||
git checkout master
|
||||
git commit -m "Another master commit"
|
||||
|
||||
git merge test-merging</code></pre></th>
|
||||
<th><img src="https://rawgit.com/deuill/grawkit/master/tests/04-merge.svg" alt="Simple Merging"></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><pre><code>git commit -m "Commit on master"
|
||||
|
||||
git branch test-first
|
||||
git branch test-second
|
||||
|
||||
git commit -m "Still on master"
|
||||
git tag v.1.0.0
|
||||
|
||||
git checkout test-first
|
||||
git commit
|
||||
|
||||
git checkout test-second
|
||||
git commit
|
||||
git merge test-first
|
||||
git tag v.2.0.0-rc1
|
||||
|
||||
git checkout master
|
||||
git merge test-second</code></pre></th>
|
||||
<th><img src="https://rawgit.com/deuill/grawkit/master/tests/05-multi-branch.svg" alt="Merging and Tagging Multiple Branches"></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## License
|
||||
|
||||
All code in this repository is covered by the terms of the MIT License, the full text of which can be found in the LICENSE file.
|
||||
|
|
Loading…
Reference in New Issue