- Notifications
You must be signed in to change notification settings - Fork1
Doc test#1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Merged
Doc test#1
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
5 changes: 5 additions & 0 deletionsREADME.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,11 @@ | ||
| # datalog-cpp | ||
| implementation of datalog (without negation, and semi-naive bottom-up evaluation) in C++ | ||
| work-in-progress | ||
| not yet alpha! | ||
| ## Documentation | ||
| - [Quick git how to](./docs/git-how-to.md) |
92 changes: 92 additions & 0 deletionsdocs/git-how-to.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| # Quick git how to | ||
| Quick instructions on how to contribute to this repo from the command line. | ||
| Please see link to other resources below. | ||
| ## 1. Clone the repo on your local machine | ||
| ``` | ||
| git clone git@github.com:Z80coder/datalog-cpp.git | ||
| ``` | ||
| You should now have a `datalog-cpp` folder. | ||
| ``` | ||
| cd datalog-cpp | ||
| ``` | ||
| ## 2. Update the master branch | ||
| ``` | ||
| git checkout master | ||
| git pull | ||
| ``` | ||
| ## 3. Create a new branch for your work | ||
| You will develop your code in your own branch. First you need to create it. | ||
| ``` | ||
| git checkout -b your_branch_name | ||
| git push --set-upstream origin your_branch_name | ||
| ``` | ||
| ## 4. Or switch to your existing branch for your work | ||
| If you already done the step above, then ensure you are in your branch when you write code. | ||
| ``` | ||
| git checkout your_branch_name | ||
| ``` | ||
| ## 5. Do some coding | ||
| Work as normal | ||
| ## 6. Commit your changes | ||
| Type | ||
| ``` | ||
| git status | ||
| ``` | ||
| to check which files you've added or changed. Note the files you want to commit at this time, then: | ||
| ``` | ||
| git add newfile1 newfile2 | ||
| ``` | ||
| Then commit the changes | ||
| ``` | ||
| git commit | ||
| ``` | ||
| ## 7. Push your changes to GitHub | ||
| All you've done so far is declare some changes. You haven't yet pushed them to the GitHub repo. Let's do that now. | ||
| ``` | ||
| git push | ||
| ``` | ||
| You can keep adding, committing and pushing until you're ready to open a pull-request (with the intent of merging the changes in your branch into the `master` on the repo). | ||
| ## 8. Open a pull-request | ||
| Go to https://github.com/Z80coder/datalog-cpp | ||
| Click on the `Branch` button and look for `your_branch_name`, and then click on it. | ||
| You should see a `New pull request` button. Click it and follow the user-interface prompts to create a pull-request. | ||
| Once reviewed, your branch will be merged. You can contribute a new collection of changes by returning to `Create a new branch for your work` above. | ||
| ## Other resources | ||
| - Microsoft Visual Studio has git support built in, and there's a GitHub plugin for Visual Studio to enable direct cloning from GitHub repos. | ||
| - Microsoft Visual Code also has plug-in extensions that support Git | ||
| - https://guides.github.com/ has some useful guides. | ||
| - Also, there's a GitHub Desktop app: https://desktop.github.com/ |
25 changes: 21 additions & 4 deletionssrc/Variable.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.