Skip to content

Commit 29afb25

Browse files
committed
docs: fix incorrect codeblock on output
1 parent bf70fa4 commit 29afb25

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

include/git2/sys/mempack.h

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,61 @@
2323
GIT_BEGIN_DECL
2424

2525
/**
26-
* Instantiate a new mempack backend.
26+
* Instantiate a new mempack backend.
2727
*
28-
* The backend must be added to an existing ODB with the highest
29-
* priority.
28+
* The backend must be added to an existing ODB with the highest
29+
* priority.
3030
*
31-
* git_mempack_new(&mempacker);
32-
* git_repository_odb(&odb, repository);
33-
* git_odb_add_backend(odb, mempacker, 999);
31+
* git_mempack_new(&mempacker);
32+
* git_repository_odb(&odb, repository);
33+
* git_odb_add_backend(odb, mempacker, 999);
3434
*
35-
* Once the backend has been loaded, all writes to the ODB will
36-
* instead be queued in memory, and can be finalized with
37-
* `git_mempack_dump`.
35+
* Once the backend has been loaded, all writes to the ODB will
36+
* instead be queued in memory, and can be finalized with
37+
* `git_mempack_dump`.
3838
*
39-
* Subsequent reads will also be served from the in-memory store
40-
* to ensure consistency, until the memory store is dumped.
39+
* Subsequent reads will also be served from the in-memory store
40+
* to ensure consistency, until the memory store is dumped.
4141
*
42-
* @param out Pointer where to store the ODB backend
43-
* @return 0 on success; error code otherwise
42+
* @param out Pointer where to store the ODB backend
43+
* @return 0 on success; error code otherwise
4444
*/
4545
GIT_EXTERN(int) git_mempack_new(git_odb_backend **out);
4646

4747
/**
48-
* Dump all the queued in-memory writes to a packfile.
48+
* Dump all the queued in-memory writes to a packfile.
4949
*
50-
* The contents of the packfile will be stored in the given buffer.
51-
* It is the caller's responsibility to ensure that the generated
52-
* packfile is available to the repository (e.g. by writing it
53-
* to disk, or doing something crazy like distributing it across
54-
* several copies of the repository over a network).
50+
* The contents of the packfile will be stored in the given buffer.
51+
* It is the caller's responsibility to ensure that the generated
52+
* packfile is available to the repository (e.g. by writing it
53+
* to disk, or doing something crazy like distributing it across
54+
* several copies of the repository over a network).
5555
*
56-
* Once the generated packfile is available to the repository,
57-
* call `git_mempack_reset` to cleanup the memory store.
56+
* Once the generated packfile is available to the repository,
57+
* call `git_mempack_reset` to cleanup the memory store.
5858
*
59-
* Calling `git_mempack_reset` before the packfile has been
60-
* written to disk will result in an inconsistent repository
61-
* (the objects in the memory store won't be accessible).
59+
* Calling `git_mempack_reset` before the packfile has been
60+
* written to disk will result in an inconsistent repository
61+
* (the objects in the memory store won't be accessible).
6262
*
63-
* @param pack Buffer where to store the raw packfile
64-
* @param repo The active repository where the backend is loaded
65-
* @param backend The mempack backend
66-
* @return 0 on success; error code otherwise
63+
* @param pack Buffer where to store the raw packfile
64+
* @param repo The active repository where the backend is loaded
65+
* @param backend The mempack backend
66+
* @return 0 on success; error code otherwise
6767
*/
6868
GIT_EXTERN(int) git_mempack_dump(git_buf *pack, git_repository *repo, git_odb_backend *backend);
6969

7070
/**
71-
* Reset the memory packer by clearing all the queued objects.
71+
* Reset the memory packer by clearing all the queued objects.
7272
*
73-
* This assumes that `git_mempack_dump` has been called before to
74-
* store all the queued objects into a single packfile.
73+
* This assumes that `git_mempack_dump` has been called before to
74+
* store all the queued objects into a single packfile.
7575
*
76-
* Alternatively, call `reset` without a previous dump to "undo"
77-
* all the recently written objects, giving transaction-like
78-
* semantics to the Git repository.
76+
* Alternatively, call `reset` without a previous dump to "undo"
77+
* all the recently written objects, giving transaction-like
78+
* semantics to the Git repository.
7979
*
80-
* @param backend The mempack backend
80+
* @param backend The mempack backend
8181
*/
8282
GIT_EXTERN(void) git_mempack_reset(git_odb_backend *backend);
8383

0 commit comments

Comments
 (0)