Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs11-async
documents
Commits
758391f6
Commit
758391f6
authored
4 years ago
by
Caleb C. Sander
Browse files
Options
Download
Email Patches
Plain Diff
Fix #7
parent
81927b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
specs/mini-vc/mini-vc.md
+10
-7
specs/mini-vc/mini-vc.md
with
10 additions
and
7 deletions
+10
-7
specs/mini-vc/mini-vc.md
View file @
758391f6
...
...
@@ -163,13 +163,13 @@ It is an error if a repository with this name already exists.
The request JSON has the following form:
```
ts
interface
NewRepositoryRequest
{
{
name
:
string
}
```
If successful, the response JSON has the following form:
```
ts
interface
NewRepositoryResponse
{
{
success
:
true
}
```
...
...
@@ -182,7 +182,7 @@ It is an error if the repository doesn't exist or the commit does not exist in t
The request JSON has the following form:
```
ts
interface
FetchRequest
{
{
// Repository name
name
:
string
// Last known commit ID.
...
...
@@ -192,18 +192,21 @@ interface FetchRequest {
```
If successful, the response JSON has the following form:
```
ts
interface
FetchResponse
{
{
success
:
true
// Commits after parentID up to HEAD.
// They must be ordered from oldest to newest.
commits
:
Commit
[]
}
interface
Commit
{
```
where
```
ts
type
Commit
=
{
id
:
string
message
:
string
diffs
:
FileDiffs
}
interfac
e
FileDiffs
{
typ
e
FileDiffs
=
{
// Map each filename to a diff for that file
[
file
:
string
]:
Diff
}
...
...
@@ -226,7 +229,7 @@ If there is a merge conflict, `mergeFileDiffs()` will throw an error, which you
The request JSON has the following form:
```
ts
interface
CommitRequest
{
{
// Repository name
name
:
string
// Parent commit.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment