Skip to content

Commit 8e02aff

Browse files
guidelines for contributions
1 parent ca2b623 commit 8e02aff

9 files changed

+49
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If you would like to contribute with code, please follow the instructions below:
1414

1515
* [Setting up Git](doc/setting_up_git.md)
1616
* [How to create a copy of the respository and contribute changes to the repository](doc/create_local_copy_of_repository.md)
17-
* [Guidelines for code contribution](doc/guidelines_for_contributions.md)
17+
* [Guidelines for IVIM code contribution](doc/guidelines_for_contributions.md)
1818
* [Guidelines to creating a test file](doc/creating_test.md)
1919

2020
## Repository Organization
@@ -23,7 +23,7 @@ The repository is organized in four main folders along with configuration files
2323

2424
The **doc** folder contains all documentation related to the repository of task force 2.4.
2525

26-
The **src** folder contains source code contributed by the the community. Within **src**, the **original** folder contains the code to be tested, and the **wrappers** folder contains code for harmizing the calls the different code contributions. Within the **original** folders, contributions are stored in Initials_InstitutionCountry, e.g. src/original/OGC_AmsterdamUMC.
26+
The **src** folder contains source code contributed by the the community. Within **src**, the **original** folder contains the code to be tested, and the **wrappers** folder contains code for harmizing the calls the different code contributions. Within the **original** folders, contributions are stored in Initials_Institution, e.g. src/original/OGC_AmsterdamUMC.
2727

2828
The **test** folder contains the test files corresponding to the contributed code in **src**. *to be structured*
2929

doc/create_local_copy_of_repository.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,46 @@
22

33
The instructions outlined below shows a few (but far from all) ways for creating a copy of the repository and contribute with changes.
44

5-
# Using Visual Studio Code
6-
*to be added*
5+
# Creating a local copy of the repository
6+
Create a github user: [Link to Github](https://github.com/)
77

8-
# Alternative approach
9-
- Create a github user
8+
Create your own fork of the repository with the fork button in the upper right corner:
9+
10+
![Fork](figs/fork.png)
11+
12+
Copy the link of your fork:
13+
14+
![Github_clone](figs/github_clone.png)
15+
16+
Continue with one of the following methods:
17+
18+
## Using Visual Studio Code
19+
Press the "Clone Repository" button under the "Source Control" tab and follow the instructions:
20+
21+
![vscode_clone](figs/vscode_clone.png)
22+
23+
## Using commandline tools
1024
- `git clone <repository name>`
11-
- e.g. `git clone git@github.com:OSIPI/TF2.4_IVIM-MRI_CodeCollection.git`
25+
- e.g. `git clone git@github.com:oscarjalnefjord/TF2.4_IVIM-MRI_CodeCollection.git`
26+
27+
# Contributing changes
28+
If you have made changes, e.g. added new IVIM code from you group or made some change to the existing code, it can be transfered to the OSIPI repository by a commit and pull request.
29+
30+
First, upload your changes to github by a commit (see alternative methods below).
31+
32+
Second, generate a pull request for the OSIPI repository maintainers to accept by pressing the "Contribute" and then "Open pull request". Follow the instructions and write a message for the maintainers such that it is understandable what changes and/or additions to the code are intended to do.
33+
34+
![github_pullrequest](figs/github_pullrequest.png)
35+
36+
## Using Visual Studio Code
37+
Press the "Commit" button under the "Source Control" tab after writing some short description of the commit e.g. "nlls fitting GU SWE":
38+
39+
![vscode_commit](figs/vscode_commit.png)
40+
41+
Push the changes to github with the "Sync Changes" button under the "Source Control" tab:
42+
43+
![vscode_push](figs/vscode_push.png)
44+
45+
## Using commandline tools
46+
- `git commit -am "commit message"`
47+
- `git push`

doc/figs/fork.png

8.25 KB
Loading

doc/figs/github_clone.png

22.3 KB
Loading

doc/figs/github_pullrequest.png

11.2 KB
Loading

doc/figs/vscode_clone.png

18.3 KB
Loading

doc/figs/vscode_commit.png

9.66 KB
Loading

doc/figs/vscode_push.png

7.67 KB
Loading

doc/guidelines_for_contributions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Guidelines for code contribution
1+
# Guidelines for IVIM code contribution
2+
3+
## How to submit
4+
Follow the [general instructions for code constributions](create_local_copy_of_repository.md), with the additional remarks made below. The pull request message should preferably describe, very briefly, the purpose of the code.
25

36
## Contributor Information
4-
*to be added*
7+
For each contribution make sure to list the names and affiliations of all contributors of the particular code in the message of the pull request.
58

69
## Source code format
7-
*to be added*
10+
Contributions of must be place in a folder named "Initials_Institution" under src/original, e.g. "src/original/OGC_AmsterdamUMC"
811

9-
## How to submit
10-
*to be added*

0 commit comments

Comments
 (0)