Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

cleanup: remove trailing spaces

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
  • Loading branch information...
commit 932d1baf294aaacfd5a99e7758a3c08d8ffc22ab 1 parent 1f4f4d1
Kirill A. Shutemov kiryl authored vmg committed

Showing 37 changed files with 139 additions and 139 deletions. Show diff stats Hide diff stats

  1. +2 2 CMakeLists.txt
  2. +5 5 COPYING
  3. +1 1  README.md
  4. +12 12 examples/general.c
  5. +4 4 include/git2/odb.h
  6. +1 1  include/git2/oid.h
  7. +4 4 include/git2/refs.h
  8. +4 4 include/git2/repository.h
  9. +1 1  include/git2/tag.h
  10. +1 1  include/git2/tree.h
  11. +1 1  include/git2/types.h
  12. +1 1  src/filebuf.c
  13. +2 2 src/fileops.c
  14. +10 10 src/fileops.h
  15. +5 5 src/hashtable.c
  16. +1 1  src/hashtable.h
  17. +1 1  src/index.c
  18. +1 1  src/odb.c
  19. +6 6 src/odb_pack.c
  20. +1 1  src/oid.c
  21. +1 1  src/pqueue.c
  22. +1 1  src/pqueue.h
  23. +14 14 src/refs.c
  24. +5 5 src/repository.c
  25. +5 5 src/signature.c
  26. +14 14 src/tag.c
  27. +10 10 src/tree.c
  28. +8 8 src/util.c
  29. +4 4 src/util.h
  30. +1 1  src/vector.c
  31. +1 1  tests/t00-core.c
  32. +1 1  tests/t02-objread.c
  33. +1 1  tests/t04-commit.c
  34. +2 2 tests/t05-revwalk.c
  35. +1 1  tests/t06-index.c
  36. +5 5 tests/t10-refs.c
  37. +1 1  tests/test_lib.h
4 CMakeLists.txt
@@ -4,7 +4,7 @@
4 4 # > mkdir build && cd build
5 5 # > cmake .. [-DSETTINGS=VALUE]
6 6 # > cmake --build .
7   -#
  7 +#
8 8 # Testing:
9 9 # > ctest -V
10 10 #
@@ -90,7 +90,7 @@ SET_TARGET_PROPERTIES(git2 PROPERTIES VERSION ${LIBGIT2_VERSION_STRING})
90 90 SET_TARGET_PROPERTIES(git2 PROPERTIES SOVERSION ${LIBGIT2_VERSION_MAJOR})
91 91
92 92 # Install
93   -INSTALL(TARGETS git2
  93 +INSTALL(TARGETS git2
94 94 RUNTIME DESTINATION ${INSTALL_BIN}
95 95 LIBRARY DESTINATION ${INSTALL_LIB}
96 96 ARCHIVE DESTINATION ${INSTALL_LIB}
10 COPYING
@@ -71,7 +71,7 @@ patent must be licensed for everyone's free use or not licensed at all.
71 71
72 72 The precise terms and conditions for copying, distribution and
73 73 modification follow.
74   -
  74 +
75 75 GNU GENERAL PUBLIC LICENSE
76 76 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
77 77
@@ -126,7 +126,7 @@ above, provided that you also meet all of these conditions:
126 126 License. (Exception: if the Program itself is interactive but
127 127 does not normally print such an announcement, your work based on
128 128 the Program is not required to print an announcement.)
129   -
  129 +
130 130 These requirements apply to the modified work as a whole. If
131 131 identifiable sections of that work are not derived from the Program,
132 132 and can be reasonably considered independent and separate works in
@@ -184,7 +184,7 @@ access to copy from a designated place, then offering equivalent
184 184 access to copy the source code from the same place counts as
185 185 distribution of the source code, even though third parties are not
186 186 compelled to copy the source along with the object code.
187   -
  187 +
188 188 4. You may not copy, modify, sublicense, or distribute the Program
189 189 except as expressly provided under this License. Any attempt
190 190 otherwise to copy, modify, sublicense or distribute the Program is
@@ -241,7 +241,7 @@ impose that choice.
241 241
242 242 This section is intended to make thoroughly clear what is believed to
243 243 be a consequence of the rest of this License.
244   -
  244 +
245 245 8. If the distribution and/or use of the Program is restricted in
246 246 certain countries either by patents or by copyrighted interfaces, the
247 247 original copyright holder who places the Program under this License
@@ -294,7 +294,7 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
294 294 POSSIBILITY OF SUCH DAMAGES.
295 295
296 296 END OF TERMS AND CONDITIONS
297   -
  297 +
298 298 How to Apply These Terms to Your New Programs
299 299
300 300 If you develop a new program, and you want it to be of the greatest
2  README.md
Source Rendered
@@ -101,7 +101,7 @@ GitHub, or join us on the mailing list by sending an email to:
101 101 libgit2@librelist.com
102 102
103 103
104   -License
  104 +License
105 105 ==================================
106 106 libgit2 is under GPL2 **with linking exemption**. This means you
107 107 can link to the library with any program, commercial, open source or
24 examples/general.c
... ... @@ -1,7 +1,7 @@
1 1 // [**libgit2**][lg] is a portable, pure C implementation of the Git core methods
2 2 // provided as a re-entrant linkable library with a solid API, allowing you
3   -// to write native speed custom Git applications in any language which
4   -// supports C bindings.
  3 +// to write native speed custom Git applications in any language which
  4 +// supports C bindings.
5 5 //
6 6 // This file is an example of using that API in a real, compilable C file.
7 7 // As the API is updated, this file will be updated to demonstrate the
@@ -65,8 +65,8 @@ int main (int argc, char** argv)
65 65
66 66 // ### Working with the Object Database
67 67 // **libgit2** provides [direct access][odb] to the object database.
68   - // The object database is where the actual objects are stored in Git. For
69   - // working with raw objects, we'll need to get this structure from the
  68 + // The object database is where the actual objects are stored in Git. For
  69 + // working with raw objects, we'll need to get this structure from the
70 70 // repository.
71 71 // [odb]: http://libgit2.github.com/libgit2/#HEAD/group/odb
72 72 git_odb *odb;
@@ -94,10 +94,10 @@ int main (int argc, char** argv)
94 94 data = (const unsigned char *)git_odb_object_data(obj);
95 95 otype = git_odb_object_type(obj);
96 96
97   - // We provide methods to convert from the object type which is an enum, to a string
  97 + // We provide methods to convert from the object type which is an enum, to a string
98 98 // representation of that value (and vice-versa).
99 99 str_type = git_object_type2string(otype);
100   - printf("object length and type: %d, %s\n",
  100 + printf("object length and type: %d, %s\n",
101 101 (int)git_odb_object_size(obj),
102 102 str_type);
103 103
@@ -126,7 +126,7 @@ int main (int argc, char** argv)
126 126 // yourself.
127 127
128 128 // #### Commit Parsing
129   - // [Parsing commit objects][pco] is simple and gives you access to all the data in the commit
  129 + // [Parsing commit objects][pco] is simple and gives you access to all the data in the commit
130 130 // - the // author (name, email, datetime), committer (same), tree, message, encoding and parent(s).
131 131 // [pco]: http://libgit2.github.com/libgit2/#HEAD/group/commit
132 132
@@ -156,7 +156,7 @@ int main (int argc, char** argv)
156 156 printf("Author: %s (%s)\n", author->name, author->email);
157 157
158 158 // Commits can have zero or more parents. The first (root) commit will have no parents, most commits
159   - // will have one, which is the commit it was based on, and merge commits will have two or more.
  159 + // will have one, which is the commit it was based on, and merge commits will have two or more.
160 160 // Commits can technically have any number, though it's pretty rare to have more than two.
161 161 parents = git_commit_parentcount(commit);
162 162 for (p = 0;p < parents;p++) {
@@ -191,7 +191,7 @@ int main (int argc, char** argv)
191 191 987654321, 90);
192 192
193 193 // Commit objects need a tree to point to and optionally one or more parents. Here we're creating oid
194   - // objects to create the commit with, but you can also use
  194 + // objects to create the commit with, but you can also use
195 195 git_oid_fromstr(&tree_id, "28873d96b4e8f4e33ea30f4c682fd325f7ba56ac");
196 196 git_oid_fromstr(&parent_id, "f0877d0b841d75172ec404fc9370173dfffc20d1");
197 197
@@ -227,7 +227,7 @@ int main (int argc, char** argv)
227 227 error = git_tag_lookup(&tag, repo, &oid);
228 228
229 229 // Now that we have the tag object, we can extract the information it generally contains: the target
230   - // (usually a commit object), the type of the target object (usually 'commit'), the name ('v1.0'),
  230 + // (usually a commit object), the type of the target object (usually 'commit'), the name ('v1.0'),
231 231 // the tagger (a git_signature - name, email, timestamp), and the tag message.
232 232 git_tag_target((git_object **)&commit, tag);
233 233 tname = git_tag_name(tag); // "test"
@@ -275,7 +275,7 @@ int main (int argc, char** argv)
275 275 //
276 276 // The last object type is the simplest and requires the least parsing help. Blobs are just file
277 277 // contents and can contain anything, there is no structure to it. The main advantage to using the
278   - // [simple blob api][ba] is that when you're creating blobs you don't have to calculate the size
  278 + // [simple blob api][ba] is that when you're creating blobs you don't have to calculate the size
279 279 // of the content. There is also a helper for reading a file from disk and writing it to the db and
280 280 // getting the oid back so you don't have to do all those steps yourself.
281 281 //
@@ -343,7 +343,7 @@ int main (int argc, char** argv)
343 343
344 344 // ### Index File Manipulation
345 345 //
346   - // The [index file API][gi] allows you to read, traverse, update and write the Git index file
  346 + // The [index file API][gi] allows you to read, traverse, update and write the Git index file
347 347 // (sometimes thought of as the staging area).
348 348 //
349 349 // [gi]: http://libgit2.github.com/libgit2/#HEAD/group/index
8 include/git2/odb.h
@@ -91,7 +91,7 @@ GIT_EXTERN(int) git_odb_add_backend(git_odb *odb, git_odb_backend *backend, int
91 91 * backend will work as an alternate.
92 92 *
93 93 * Alternate backends are always checked for objects *after*
94   - * all the main backends have been exhausted.
  94 + * all the main backends have been exhausted.
95 95 *
96 96 * The backends are checked in relative ordering, based on the
97 97 * value of the `priority` parameter.
@@ -220,12 +220,12 @@ GIT_EXTERN(int) git_odb_write(git_oid *oid, git_odb *odb, const void *data, size
220 220 *
221 221 * The returned stream will be of type `GIT_STREAM_WRONLY` and
222 222 * will have the following methods:
223   - *
  223 + *
224 224 * - stream->write: write `n` bytes into the stream
225 225 * - stream->finalize_write: close the stream and store the object in
226 226 * the odb
227 227 * - stream->free: free the stream
228   - *
  228 + *
229 229 * The streaming write won't be effective until `stream->finalize_write`
230 230 * is called and returns without an error
231 231 *
@@ -252,7 +252,7 @@ GIT_EXTERN(int) git_odb_open_wstream(git_odb_stream **stream, git_odb *db, size_
252 252 *
253 253 * The returned stream will be of type `GIT_STREAM_RDONLY` and
254 254 * will have the following methods:
255   - *
  255 + *
256 256 * - stream->read: read `n` bytes from the stream
257 257 * - stream->free: free the stream
258 258 *
2  include/git2/oid.h
@@ -215,7 +215,7 @@ int git_oid_shorten_add(git_oid_shorten *os, const char *text_oid);
215 215
216 216 /**
217 217 * Free an OID shortener instance
218   - *
  218 + *
219 219 * @param os a `git_oid_shorten` instance
220 220 */
221 221 void git_oid_shorten_free(git_oid_shorten *os);
8 include/git2/refs.h
@@ -95,7 +95,7 @@ GIT_EXTERN(int) git_reference_create_oid(git_reference **ref_out, git_repository
95 95
96 96 /**
97 97 * Get the OID pointed to by a reference.
98   - *
  98 + *
99 99 * Only available if the reference is direct (i.e. not symbolic)
100 100 *
101 101 * @param ref The reference
@@ -105,7 +105,7 @@ GIT_EXTERN(const git_oid *) git_reference_oid(git_reference *ref);
105 105
106 106 /**
107 107 * Get full name to the reference pointed by this reference
108   - *
  108 + *
109 109 * Only available if the reference is symbolic
110 110 *
111 111 * @param ref The reference
@@ -132,7 +132,7 @@ GIT_EXTERN(git_rtype) git_reference_type(git_reference *ref);
132 132 GIT_EXTERN(const char *) git_reference_name(git_reference *ref);
133 133
134 134 /**
135   - * Resolve a symbolic reference
  135 + * Resolve a symbolic reference
136 136 *
137 137 * Thie method iteratively peels a symbolic reference
138 138 * until it resolves to a direct reference to an OID.
@@ -212,7 +212,7 @@ GIT_EXTERN(int) git_reference_delete(git_reference *ref);
212 212 * Pack all the loose references in the repository
213 213 *
214 214 * This method will load into the cache all the loose
215   - * references on the repository and update the
  215 + * references on the repository and update the
216 216 * `packed-refs` file with them.
217 217 *
218 218 * Once the `packed-refs` file has been written properly,
8 include/git2/repository.h
@@ -71,7 +71,7 @@ GIT_EXTERN(int) git_repository_open(git_repository **repository, const char *pat
71 71 *
72 72 * @param git_dir The full path to the repository folder
73 73 * e.g. a '.git' folder for live repos, any folder for bare
74   - * Equivalent to $GIT_DIR.
  74 + * Equivalent to $GIT_DIR.
75 75 * Cannot be NULL.
76 76 *
77 77 * @param git_object_directory The full path to the ODB folder.
@@ -105,7 +105,7 @@ GIT_EXTERN(int) git_repository_open2(git_repository **repository,
105 105 *
106 106 * @param git_dir The full path to the repository folder
107 107 * e.g. a '.git' folder for live repos, any folder for bare
108   - * Equivalent to $GIT_DIR.
  108 + * Equivalent to $GIT_DIR.
109 109 * Cannot be NULL.
110 110 *
111 111 * @param object_database A pointer to a git_odb created & initialized
@@ -210,8 +210,8 @@ GIT_EXTERN(void) git_repository_free(git_repository *repo);
210 210 *
211 211 * @param repo_out pointer to the repo which will be created or reinitialized
212 212 * @param path the path to the repository
213   - * @param is_bare if true, a Git repository without a working directory is created
214   - * at the pointed path. If false, provided path will be considered as the working
  213 + * @param is_bare if true, a Git repository without a working directory is created
  214 + * at the pointed path. If false, provided path will be considered as the working
215 215 * directory into which the .git directory will be created.
216 216 *
217 217 * @return 0 on success; error code otherwise
2  include/git2/tag.h
@@ -163,7 +163,7 @@ GIT_EXTERN(const char *) git_tag_message(git_tag *tag);
163 163 * @param repo Repository where to store the tag
164 164 *
165 165 * @param tag_name Name for the tag; this name is validated
166   - * for consistency. It should also not conflict with an
  166 + * for consistency. It should also not conflict with an
167 167 * already existing tag name
168 168 *
169 169 * @param target Object to which this tag points. This object
2  include/git2/tree.h
@@ -190,7 +190,7 @@ GIT_EXTERN(int) git_tree_create_fromindex(git_oid *oid, git_index *index);
190 190 *
191 191 * If the `source` parameter is not NULL, the tree builder
192 192 * will be initialized with the entries of the given tree.
193   - *
  193 + *
194 194 * If the `source` parameter is NULL, the tree builder will
195 195 * have no entries and will have to be filled manually.
196 196 *
2  include/git2/types.h
@@ -66,7 +66,7 @@ typedef __haiku_std_int64 git_time_t;
66 66
67 67 #else /* POSIX */
68 68
69   -/*
  69 +/*
70 70 * Note: Can't use off_t since if a client program includes <sys/types.h>
71 71 * before us (directly or indirectly), they'll get 32 bit off_t in their client
72 72 * app, even though /we/ define _FILE_OFFSET_BITS=64.
2  src/filebuf.c
@@ -200,7 +200,7 @@ int git_filebuf_open(git_filebuf *file, const char *path, int flags)
200 200 char tmp_path[GIT_PATH_MAX];
201 201
202 202 /* Open the file as temporary for locking */
203   - file->fd = gitfo_mktemp(tmp_path, path);
  203 + file->fd = gitfo_mktemp(tmp_path, path);
204 204 if (file->fd < 0) {
205 205 error = GIT_EOSERR;
206 206 goto cleanup;
4 src/fileops.c
@@ -475,7 +475,7 @@ int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path, con
475 475 current++;
476 476 continue;
477 477 }
478   -
  478 +
479 479 only_dots = 1;
480 480 segment_len = 0;
481 481
@@ -753,7 +753,7 @@ int gitfo_hide_directory__w32(const char *path)
753 753 error = SetFileAttributes(path, FILE_ATTRIBUTE_HIDDEN) != 0 ?
754 754 GIT_SUCCESS : GIT_ERROR; /* MSDN states a "non zero" value indicates a success */
755 755
756   - if (error < GIT_SUCCESS)
  756 + if (error < GIT_SUCCESS)
757 757 error = git__throw(GIT_EOSERR, "Failed to hide directory '%s'", path);
758 758
759 759 return error;
20 src/fileops.h
@@ -165,10 +165,10 @@ extern int gitfo_getcwd(char *buffer_out, size_t size);
165 165
166 166 /**
167 167 * Clean up a provided absolute or relative directory path.
168   - *
169   - * This prettification relies on basic operations such as coalescing
170   - * multiple forward slashes into a single slash, removing '.' and
171   - * './' current directory segments, and removing parent directory
  168 + *
  169 + * This prettification relies on basic operations such as coalescing
  170 + * multiple forward slashes into a single slash, removing '.' and
  171 + * './' current directory segments, and removing parent directory
172 172 * whenever '..' is encountered.
173 173 *
174 174 * If not empty, the returned path ends with a forward slash.
@@ -176,7 +176,7 @@ extern int gitfo_getcwd(char *buffer_out, size_t size);
176 176 * For instance, this will turn "d1/s1///s2/..//../s3" into "d1/s3/".
177 177 *
178 178 * This only performs a string based analysis of the path.
179   - * No checks are done to make sure the path actually makes sense from
  179 + * No checks are done to make sure the path actually makes sense from
180 180 * the file system perspective.
181 181 *
182 182 * @param buffer_out buffer to populate with the normalized path.
@@ -190,16 +190,16 @@ int gitfo_prettify_dir_path(char *buffer_out, size_t size, const char *path, con
190 190
191 191 /**
192 192 * Clean up a provided absolute or relative file path.
193   - *
194   - * This prettification relies on basic operations such as coalescing
195   - * multiple forward slashes into a single slash, removing '.' and
196   - * './' current directory segments, and removing parent directory
  193 + *
  194 + * This prettification relies on basic operations such as coalescing
  195 + * multiple forward slashes into a single slash, removing '.' and
  196 + * './' current directory segments, and removing parent directory
197 197 * whenever '..' is encountered.
198 198 *
199 199 * For instance, this will turn "d1/s1///s2/..//../s3" into "d1/s3".
200 200 *
201 201 * This only performs a string based analysis of the path.
202   - * No checks are done to make sure the path actually makes sense from
  202 + * No checks are done to make sure the path actually makes sense from
203 203 * the file system perspective.
204 204 *
205 205 * @param buffer_out buffer to populate with the normalized path.
10 src/hashtable.c
@@ -94,22 +94,22 @@ static void node_swap_with(git_hashtable_node *self, git_hashtable_node *other)
94 94 }
95 95
96 96 static int node_insert(git_hashtable *self, git_hashtable_node *new_node)
97   -{
  97 +{
98 98 int iteration, hash_id;
99 99
100   - for (iteration = 0; iteration < MAX_LOOPS; iteration++) {
  100 + for (iteration = 0; iteration < MAX_LOOPS; iteration++) {
101 101 for (hash_id = 0; hash_id < GIT_HASHTABLE_HASHES; ++hash_id) {
102 102 git_hashtable_node *node;
103 103 node = node_with_hash(self, new_node->key, hash_id);
104 104 node_swap_with(new_node, node);
105 105 if(new_node->key == 0x0){
106 106 self->key_count++;
107   - return GIT_SUCCESS;
  107 + return GIT_SUCCESS;
108 108 }
109 109 }
110 110 }
111 111
112   - if (self->is_resizing)
  112 + if (self->is_resizing)
113 113 return git__throw(GIT_EBUSY, "Failed to insert node. Hashtable is currently resizing");
114 114
115 115 resize_to(self, self->size * 2);
@@ -130,7 +130,7 @@ static int insert_nodes(git_hashtable *self, git_hashtable_node *old_nodes, size
130 130 return GIT_SUCCESS;
131 131 }
132 132
133   -git_hashtable *git_hashtable_alloc(size_t min_size,
  133 +git_hashtable *git_hashtable_alloc(size_t min_size,
134 134 git_hash_ptr hash,
135 135 git_hash_keyeq_ptr key_eq)
136 136 {
2  src/hashtable.h
@@ -31,7 +31,7 @@ struct git_hashtable {
31 31 typedef struct git_hashtable_node git_hashtable_node;
32 32 typedef struct git_hashtable git_hashtable;
33 33
34   -git_hashtable *git_hashtable_alloc(size_t min_size,
  34 +git_hashtable *git_hashtable_alloc(size_t min_size,
35 35 git_hash_ptr hash,
36 36 git_hash_keyeq_ptr key_eq);
37 37 void *git_hashtable_lookup(git_hashtable *h, const void *key);
2  src/index.c
@@ -549,7 +549,7 @@ static int read_tree_internal(git_index_tree **out,
549 549 if (count == -1) {
550 550 /* FIXME: return buffer_end or the end position for
551 551 * this single tree entry */
552   - *buffer_in = buffer_end;
  552 + *buffer_in = buffer_end;
553 553 *out = NULL;
554 554 free_tree(tree); /* Needs to be done manually */
555 555 return GIT_SUCCESS;
2  src/odb.c
@@ -620,7 +620,7 @@ int git_odb_open_wstream(git_odb_stream **stream, git_odb *db, size_t size, git_
620 620 return git__rethrow(error, "Failed to open write stream");
621 621 }
622 622
623   -int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oid)
  623 +int git_odb_open_rstream(git_odb_stream **stream, git_odb *db, const git_oid *oid)
624 624 {
625 625 unsigned int i;
626 626 int error = GIT_ERROR;
12 src/odb_pack.c
@@ -227,7 +227,7 @@ struct pack_backend {
227 227
228 228
229 229
230   -
  230 +
231 231 /***********************************************************
232 232 *
233 233 * FORWARD DECLARATIONS
@@ -306,7 +306,7 @@ static off_t get_delta_base(struct pack_backend *backend,
306 306
307 307 static unsigned long packfile_unpack_header1(
308 308 size_t *sizep,
309   - git_otype *type,
  309 + git_otype *type,
310 310 const unsigned char *buf,
311 311 unsigned long len);
312 312
@@ -807,7 +807,7 @@ static int packfile_open(struct pack_file *p)
807 807 if (git_oid_cmp(&sha1, (git_oid *)idx_sha1) != 0)
808 808 goto cleanup;
809 809
810   - return GIT_SUCCESS;
  810 + return GIT_SUCCESS;
811 811
812 812 cleanup:
813 813 gitfo_close(p->pack_fd);
@@ -1068,7 +1068,7 @@ static int pack_entry_find1(
1068 1068 return git__rethrow(error, "Failed to find pack entry. Couldn't find offset");
1069 1069
1070 1070 /* we found a unique entry in the index;
1071   - * make sure the packfile backing the index
  1071 + * make sure the packfile backing the index
1072 1072 * still exists on disk */
1073 1073 if (p->pack_fd == -1 && packfile_open(p) < GIT_SUCCESS)
1074 1074 return git__throw(GIT_EOSERR, "Failed to find pack entry. Packfile doesn't exist on disk");
@@ -1177,7 +1177,7 @@ static int pack_entry_find_prefix(
1177 1177
1178 1178 static unsigned long packfile_unpack_header1(
1179 1179 size_t *sizep,
1180   - git_otype *type,
  1180 + git_otype *type,
1181 1181 const unsigned char *buf,
1182 1182 unsigned long len)
1183 1183 {
@@ -1385,7 +1385,7 @@ static int packfile_unpack(
1385 1385 size_t size = 0;
1386 1386 git_otype type;
1387 1387
1388   - /*
  1388 + /*
1389 1389 * TODO: optionally check the CRC on the packfile
1390 1390 */
1391 1391
2  src/oid.c
@@ -305,7 +305,7 @@ void git_oid_shorten_free(git_oid_shorten *os)
305 305 *
306 306 * - Each normal node points to 16 children (one for each possible
307 307 * character in the oid). This is *not* stored in an array of
308   - * pointers, because in a 64-bit arch this would be sucking
  308 + * pointers, because in a 64-bit arch this would be sucking
309 309 * 16*sizeof(void*) = 128 bytes of memory per node, which is fucking
310 310 * insane. What we do is store Node Indexes, and use these indexes
311 311 * to look up each node in the om->index array. These indexes are
2  src/pqueue.c
@@ -11,7 +11,7 @@
11 11 * Copyright 2010 Volkan Yazıcı <volkan.yazici@gmail.com>
12 12 * Copyright 2006-2010 The Apache Software Foundation
13 13 *
14   - * This file is licensed under the Apache 2.0 license, which
  14 + * This file is licensed under the Apache 2.0 license, which
15 15 * supposedly makes it compatible with the GPLv2 that libgit2 uses.
16 16 *
17 17 * Check the Apache license at:
2  src/pqueue.h
@@ -11,7 +11,7 @@
11 11 * Copyright 2010 Volkan Yazıcı <volkan.yazici@gmail.com>
12 12 * Copyright 2006-2010 The Apache Software Foundation
13 13 *
14   - * This file is licensed under the Apache 2.0 license, which
  14 + * This file is licensed under the Apache 2.0 license, which
15 15 * supposedly makes it compatible with the GPLv2 that libgit2 uses.
16 16 *
17 17 * Check the Apache license at:
28 src/refs.c
@@ -51,7 +51,7 @@ static uint32_t reftable_hash(const void *key, int hash_id)
51 51 static uint32_t hash_seeds[GIT_HASHTABLE_HASHES] = {
52 52 2147483647,
53 53 0x5d20bb23,
54   - 0x7daaab3c
  54 + 0x7daaab3c
55 55 };
56 56
57 57 return git__hash(key, strlen((const char *)key), hash_seeds[hash_id]);
@@ -230,9 +230,9 @@ static int loose_parse_symbolic(git_reference *ref, gitfo_buf *file_content)
230 230 return git__throw(GIT_EOBJCORRUPTED,
231 231 "Failed to parse loose reference. Object too short");
232 232
233   - /*
  233 + /*
234 234 * Assume we have already checked for the header
235   - * before calling this function
  235 + * before calling this function
236 236 */
237 237
238 238 refname_start += header_len;
@@ -303,8 +303,8 @@ static git_rtype loose_guess_rtype(const char *full_path)
303 303 }
304 304
305 305 static int loose_lookup(
306   - git_reference **ref_out,
307   - git_repository *repo,
  306 + git_reference **ref_out,
  307 + git_repository *repo,
308 308 const char *name,
309 309 int skip_symbolic)
310 310 {
@@ -405,7 +405,7 @@ static int loose_write(git_reference *ref)
405 405
406 406 static int packed_parse_peel(
407 407 reference_oid *tag_ref,
408   - const char **buffer_out,
  408 + const char **buffer_out,
409 409 const char *buffer_end)
410 410 {
411 411 const char *buffer = *buffer_out + 1;
@@ -525,7 +525,7 @@ static int packed_load(git_repository *repo)
525 525 git_hashtable_clear(repo->references.packfile);
526 526 } else {
527 527 ref_cache->packfile = git_hashtable_alloc(
528   - default_table_size,
  528 + default_table_size,
529 529 reftable_hash,
530 530 (git_hash_keyeq_ptr)strcmp);
531 531
@@ -680,7 +680,7 @@ static int packed_loadloose(git_repository *repository)
680 680 /*
681 681 * Load all the loose files from disk into the Packfile table.
682 682 * This will overwrite any old packed entries with their
683   - * updated loose versions
  683 + * updated loose versions
684 684 */
685 685 return gitfo_dirent(refs_path, GIT_PATH_MAX, _dirent_loose_load, repository);
686 686 }
@@ -696,7 +696,7 @@ static int packed_write_ref(reference_oid *ref, git_filebuf *file)
696 696 git_oid_fmt(oid, &ref->oid);
697 697 oid[GIT_OID_HEXSZ] = 0;
698 698
699   - /*
  699 + /*
700 700 * For references that peel to an object in the repo, we must
701 701 * write the resulting peel on a separate line, e.g.
702 702 *
@@ -722,7 +722,7 @@ static int packed_write_ref(reference_oid *ref, git_filebuf *file)
722 722 /*
723 723 * Find out what object this reference resolves to.
724 724 *
725   - * For references that point to a 'big' tag (e.g. an
  725 + * For references that point to a 'big' tag (e.g. an
726 726 * actual tag object on the repository), we need to
727 727 * cache on the packfile the OID of the object to
728 728 * which that 'big tag' is pointing to.
@@ -998,7 +998,7 @@ int git_reference_lookup(git_reference **ref_out, git_repository *repo, const ch
998 998
999 999 /*
1000 1000 * If we cannot find a loose reference, we look into the packfile
1001   - * Load the packfile first if it hasn't been loaded
  1001 + * Load the packfile first if it hasn't been loaded
1002 1002 */
1003 1003 /* load all the packed references */
1004 1004 error = packed_load(repo);
@@ -1234,7 +1234,7 @@ int git_reference_set_oid(git_reference *ref, const git_oid *id)
1234 1234 git_oid_cpy(&ref_oid->oid, id);
1235 1235 ref->type &= ~GIT_REF_HAS_PEEL;
1236 1236
1237   - error = loose_write(ref);
  1237 + error = loose_write(ref);
1238 1238 if (error < GIT_SUCCESS)
1239 1239 goto cleanup;
1240 1240
@@ -1445,7 +1445,7 @@ int git_reference_delete(git_reference *ref)
1445 1445 /* load the existing packfile */
1446 1446 if ((error = packed_load(ref->owner)) < GIT_SUCCESS)
1447 1447 return git__rethrow(error, "Failed to delete reference");
1448   -
  1448 +
1449 1449 if (git_hashtable_remove(ref->owner->references.packfile, ref->name) < GIT_SUCCESS)
1450 1450 return git__throw(GIT_ENOTFOUND, "Reference not found");
1451 1451
@@ -1482,7 +1482,7 @@ int git_reference_resolve(git_reference **resolved_ref, git_reference *ref)
1482 1482
1483 1483 if ((error = loose_update(ref)) < GIT_SUCCESS)
1484 1484 return git__rethrow(error, "Failed to resolve reference");
1485   -
  1485 +
1486 1486 repo = ref->owner;
1487 1487
1488 1488 for (i = 0; i < MAX_NESTING_LEVEL; ++i) {
10 src/repository.c
@@ -118,7 +118,7 @@ static int assign_repository_dirs(
118 118 if (repo->path_index == NULL)
119 119 return GIT_ENOMEM;
120 120 }
121   -
  121 +
122 122 return GIT_SUCCESS;
123 123 }
124 124
@@ -207,8 +207,8 @@ int git_repository_open3(git_repository **repo_out,
207 207 if (repo == NULL)
208 208 return GIT_ENOMEM;
209 209
210   - error = assign_repository_dirs(repo,
211   - git_dir,
  210 + error = assign_repository_dirs(repo,
  211 + git_dir,
212 212 NULL,
213 213 git_index_file,
214 214 git_work_tree);
@@ -247,7 +247,7 @@ int git_repository_open2(git_repository **repo_out,
247 247 return GIT_ENOMEM;
248 248
249 249 error = assign_repository_dirs(repo,
250   - git_dir,
  250 + git_dir,
251 251 git_object_directory,
252 252 git_index_file,
253 253 git_work_tree);
@@ -711,7 +711,7 @@ int git_repository_init(git_repository **repo_out, const char *path, unsigned is
711 711 int error = GIT_SUCCESS;
712 712 git_repository *repo = NULL;
713 713 repo_init results;
714   -
  714 +
715 715 assert(repo_out && path);
716 716
717 717 results.path_repository = NULL;
10 src/signature.c
@@ -107,7 +107,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out)
107 107 const char *offset_start;
108 108 const char *offset_end;
109 109
110   - //we are sure that *buffer == ' '
  110 + //we are sure that *buffer == ' '
111 111 offset_start = buffer + 1;
112 112
113 113 if (*offset_start == '\n') {
@@ -133,7 +133,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out)
133 133 hours = dec_offset / 100;
134 134 mins = dec_offset % 100;
135 135
136   - if (hours > 14) // see http://www.worldtimezone.com/faq.html
  136 + if (hours > 14) // see http://www.worldtimezone.com/faq.html
137 137 return git__throw(GIT_EOBJCORRUPTED, "Failed to parse TZ offset. Hour value too large");
138 138
139 139 if (mins > 59)
@@ -143,7 +143,7 @@ static int parse_timezone_offset(const char *buffer, long *offset_out)
143 143
144 144 if (offset_start[0] == '-')
145 145 offset *= -1;
146   -
  146 +
147 147 *offset_out = offset;
148 148
149 149 return GIT_SUCCESS;
@@ -218,7 +218,7 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
218 218
219 219 if (parse_timezone_offset(buffer, &offset) < GIT_SUCCESS)
220 220 return git__throw(GIT_EOBJCORRUPTED, "Failed to parse signature. Could not parse timezone offset");
221   -
  221 +
222 222 sig->when.offset = offset;
223 223
224 224 *buffer_out = (line_end + 1);
@@ -234,7 +234,7 @@ int git_signature__write(char **signature, const char *header, const git_signatu
234 234
235 235 offset = sig->when.offset;
236 236 sign = (sig->when.offset < 0) ? '-' : '+';
237   -
  237 +
238 238 if (offset < 0)
239 239 offset = -offset;
240 240
28 src/tag.c
@@ -205,7 +205,7 @@ int git_tag_create(
205 205 return git__throw(GIT_EINVALIDARGS, "The given target does not belong to this repository");
206 206
207 207 error = retreive_tag_reference(&new_ref, ref_name, repo, tag_name);
208   -
  208 +
209 209 switch (error) {
210 210 case GIT_SUCCESS:
211 211 case GIT_ENOTFOUND:
@@ -215,7 +215,7 @@ int git_tag_create(
215 215 return git__rethrow(error, "Failed to create tag");
216 216 }
217 217
218   - /** Ensure the tag name doesn't conflict with an already existing
  218 + /** Ensure the tag name doesn't conflict with an already existing
219 219 * reference unless overwriting has explictly been requested **/
220 220 if (new_ref != NULL) {
221 221 if (!allow_ref_overwrite) {
@@ -268,7 +268,7 @@ int git_tag_create(
268 268 error = git_reference_create_oid(&new_ref, repo, ref_name, oid, 0);
269 269 else
270 270 error = git_reference_set_oid(new_ref, oid);
271   -
  271 +
272 272 return error == GIT_SUCCESS ? GIT_SUCCESS : git__rethrow(error, "Failed to create tag");
273 273 }
274 274
@@ -278,14 +278,14 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
278 278 int error, should_update_ref = 0;
279 279 git_odb_stream *stream;
280 280 git_odb_object *target_obj;
281   -
  281 +
282 282 git_reference *new_ref;
283 283 char ref_name[GIT_REFNAME_MAX];
284   -
  284 +
285 285 assert(oid && buffer);
286   -
  286 +
287 287 memset(&tag, 0, sizeof(tag));
288   -
  288 +
289 289 /* validate the buffer */
290 290 if ((error = parse_tag_buffer(&tag, buffer, buffer + strlen(buffer))) < GIT_SUCCESS)
291 291 return git__rethrow(error, "Failed to create tag");
@@ -298,7 +298,7 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
298 298 return git__throw(error, "The type for the given target is invalid");
299 299
300 300 git_odb_object_close(target_obj);
301   -
  301 +
302 302 error = retreive_tag_reference(&new_ref, ref_name, repo, tag.tag_name);
303 303
304 304 switch (error) {
@@ -320,16 +320,16 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
320 320 should_update_ref = 1;
321 321 }
322 322 }
323   -
  323 +
324 324 /* write the buffer */
325 325 if ((error = git_odb_open_wstream(&stream, repo->db, strlen(buffer), GIT_OBJ_TAG)) < GIT_SUCCESS)
326 326 return git__rethrow(error, "Failed to create tag");
327   -
  327 +
328 328 stream->write(stream, buffer, strlen(buffer));
329   -
  329 +
330 330 error = stream->finalize_write(oid, stream);
331 331 stream->free(stream);
332   -
  332 +
333 333 if (error < GIT_SUCCESS)
334 334 return git__rethrow(error, "Failed to create tag");
335 335
@@ -337,11 +337,11 @@ int git_tag_create_frombuffer(git_oid *oid, git_repository *repo, const char *bu
337 337 error = git_reference_create_oid(&new_ref, repo, ref_name, oid, 0);
338 338 else
339 339 error = git_reference_set_oid(new_ref, oid);
340   -
  340 +
341 341 git_signature_free(tag.tagger);
342 342 free(tag.tag_name);
343 343 free(tag.message);
344   -
  344 +
345 345 return error == GIT_SUCCESS ? GIT_SUCCESS : git__rethrow(error, "Failed to create tag");
346 346 }
347 347
20 src/tree.c
@@ -34,7 +34,7 @@
34 34 #define MAX_FILEMODE_BYTES 6
35 35
36 36 static int valid_attributes(const int attributes) {
37   - return attributes >= 0 && attributes <= MAX_FILEMODE;
  37 + return attributes >= 0 && attributes <= MAX_FILEMODE;
38 38 }
39 39
40 40 int entry_search_cmp(const void *key, const void *array_member)
@@ -47,7 +47,7 @@ int entry_search_cmp(const void *key, const void *array_member)
47 47
48 48 #if 0
49 49 static int valid_attributes(const int attributes) {
50   - return attributes >= 0 && attributes <= MAX_FILEMODE;
  50 + return attributes >= 0 && attributes <= MAX_FILEMODE;
51 51 }
52 52 #endif
53 53
@@ -215,9 +215,9 @@ static int write_index(git_oid *oid, git_index *index, const char *base, int bas
215 215 buffer = git__malloc(size);
216 216 if (buffer == NULL)
217 217 return GIT_ENOMEM;
218   -
  218 +
219 219 offset = 0;
220   -
  220 +
221 221 for (nr = entry_no; nr < maxentries; ++nr) {
222 222 git_index_entry *entry = git_index_get(index, nr);
223 223
@@ -227,11 +227,11 @@ static int write_index(git_oid *oid, git_index *index, const char *base, int bas
227 227 unsigned int write_mode;
228 228 git_oid subtree_oid;
229 229 git_oid *write_oid;
230   -
  230 +
231 231 /* Did we hit the end of the directory? Return how many we wrote */
232 232 if (baselen >= pathlen || memcmp(base, pathname, baselen) != 0)
233 233 break;
234   -
  234 +
235 235 /* Do we have _further_ subdirectories? */
236 236 filename = pathname + baselen;
237 237 dirname = strchr(filename, '/');
@@ -254,9 +254,9 @@ static int write_index(git_oid *oid, git_index *index, const char *base, int bas
254 254 free(buffer);
255 255 return subdir_written;
256 256 }
257   -
  257 +
258 258 nr = subdir_written - 1;
259   -
  259 +
260 260 /* Now we need to write out the directory entry into this tree.. */
261 261 pathlen = dirname - pathname;
262 262 write_oid = &subtree_oid;
@@ -267,14 +267,14 @@ static int write_index(git_oid *oid, git_index *index, const char *base, int bas
267 267 if (offset + entrylen + 32 > size) {
268 268 size = alloc_nr(offset + entrylen + 32);
269 269 buffer = git__realloc(buffer, size);
270   -
  270 +
271 271 if (buffer == NULL)
272 272 return GIT_ENOMEM;
273 273 }
274 274
275 275 offset += write_index_entry(buffer + offset, write_mode, filename, entrylen, write_oid);
276 276 }
277   -
  277 +
278 278 error = git_odb_write(oid, index->repository->db, buffer, offset, GIT_OBJ_TREE);
279 279 free(buffer);
280 280
16 src/util.c
@@ -427,17 +427,17 @@ uint32_t git__hash(const void *key, int len, unsigned int seed)
427 427 while(len >= 4) {
428 428 uint32_t k = *(uint32_t *)data;
429 429
430   - k *= m;
431   - k ^= k >> r;
432   - k *= m;
433   -
434   - h *= m;
  430 + k *= m;
  431 + k ^= k >> r;
  432 + k *= m;
  433 +
  434 + h *= m;
435 435 h ^= k;
436 436
437 437 data += 4;
438 438 len -= 4;
439 439 }
440   -
  440 +
441 441 switch(len) {
442 442 case 3: h ^= data[2] << 16;
443 443 case 2: h ^= data[1] << 8;
@@ -450,7 +450,7 @@ uint32_t git__hash(const void *key, int len, unsigned int seed)
450 450 h ^= h >> 15;
451 451
452 452 return h;
453   -}
  453 +}
454 454 #else
455 455 /*
456 456 Cross-platform version of Murmurhash3
@@ -508,5 +508,5 @@ uint32_t git__hash(const void *key, int len, uint32_t seed)
508 508 h1 ^= h1 >> 16;
509 509
510 510 return h1;
511   -}
  511 +}
512 512 #endif
8 src/util.h
@@ -5,7 +5,7 @@
5 5 #define bitsizeof(x) (CHAR_BIT * sizeof(x))
6 6 #define MSB(x, bits) ((x) & (~0ULL << (bitsizeof(x) - (bits))))
7 7
8   -/*
  8 +/*
9 9 * Custom memory allocation wrappers
10 10 * that set error code and error message
11 11 * on allocation failure
@@ -78,7 +78,7 @@ extern int git__strtol32(long *n, const char *buff, const char **end_buf, int ba
78 78 * the string ".". If path is a null pointer or points to an empty string,
79 79 * dirname() shall return a pointer to the string "." .
80 80 *
81   - * The `git__dirname` implementation is thread safe. The returned
  81 + * The `git__dirname` implementation is thread safe. The returned
82 82 * string must be manually free'd.
83 83 *
84 84 * The `git__dirname_r` implementation expects a string allocated
@@ -96,7 +96,7 @@ extern int git__dirname_r(char *buffer, size_t bufflen, const char *path);
96 96 * Trailing slashes and backslashes are significant: the basename of
97 97 * c:/foo/bar/ is an empty string after the rightmost slash.
98 98 *
99   - * The `git__basename` implementation is thread safe. The returned
  99 + * The `git__basename` implementation is thread safe. The returned
100 100 * string must be manually free'd.
101 101 *
102 102 * The `git__basename_r` implementation expects a string allocated
@@ -112,7 +112,7 @@ extern const char *git__topdir(const char *path);
112 112 * middle slashes and everything
113 113 *
114 114 * The paths are joined together into buffer_out; this is expected
115   - * to be an user allocated buffer of `GIT_PATH_MAX` size
  115 + * to be an user allocated buffer of `GIT_PATH_MAX` size
116 116 */
117 117 extern void git__joinpath_n(char *buffer_out, int npath, ...);
118 118
2  src/vector.c
@@ -61,7 +61,7 @@ int git_vector_init(git_vector *v, unsigned int initial_size, git_vector_cmp cmp
61 61
62 62 v->_alloc_size = initial_size;
63 63 v->_cmp = cmp;
64   -
  64 +
65 65 v->length = 0;
66 66 v->sorted = 1;
67 67
2  tests/t00-core.c
@@ -241,7 +241,7 @@ BEGIN_TEST(path3, "prettify and validate a path to a file")
241 241 must_fail(ensure_file_path_normalized("d1/...", NULL, 0));
242 242 must_fail(ensure_file_path_normalized("d1/.../", NULL, 0));
243 243 must_fail(ensure_file_path_normalized("d1/.../d2", NULL, 0));
244   -
  244 +
245 245 must_pass(ensure_file_path_normalized("/a", "/a", ROOTED_PATH));
246 246 must_pass(ensure_file_path_normalized("/./testrepo.git", "/testrepo.git", ROOTED_PATH));
247 247 must_pass(ensure_file_path_normalized("/./.git", "/.git", ROOTED_PATH));
2  tests/t02-objread.c
@@ -210,7 +210,7 @@ BEGIN_TEST(readheader0, "read only the header of several packed objects")
210 210 git_odb_object_close(obj);
211 211 }
212 212
213   - git_odb_close(db);
  213 + git_odb_close(db);
214 214 END_TEST
215 215
216 216 BEGIN_TEST(readheader1, "read only the header of several loose objects")
2  tests/t04-commit.c
@@ -359,7 +359,7 @@ BEGIN_TEST(details0, "query the details on a parsed commit")
359 359 git_repository *repo;
360 360
361 361 must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
362   -
  362 +
363 363 for (i = 0; i < commit_count; ++i) {
364 364 git_oid id;
365 365 git_commit *commit;
4 tests/t05-revwalk.c
@@ -74,7 +74,7 @@ static int get_commit_index(git_oid *raw_oid)
74 74 char oid[40];
75 75
76 76 git_oid_fmt(oid, raw_oid);
77   -
  77 +
78 78 for (i = 0; i < commit_count; ++i)
79 79 if (memcmp(oid, commit_ids[i], 40) == 0)
80 80 return i;
@@ -108,7 +108,7 @@ static int test_walk(git_revwalk *walk, const git_oid *root,
108 108 }*/
109 109 }
110 110
111   - for (i = 0; i < results_count; ++i)
  111 + for (i = 0; i < results_count; ++i)
112 112 if (memcmp(possible_results[i],
113 113 result_array, result_bytes) == 0)
114 114 return GIT_SUCCESS;
2  tests/t06-index.c
@@ -145,7 +145,7 @@ BEGIN_TEST(write0, "write an index back to disk")
145 145 must_pass(cmp_files(TEST_INDEXBIG_PATH, "index_rewrite"));
146 146
147 147 git_index_free(index);
148   -
  148 +
149 149 gitfo_unlink("index_rewrite");
150 150 END_TEST
151 151
10 tests/t10-refs.c
@@ -431,7 +431,7 @@ BEGIN_TEST(pack0, "create a packfile for an empty folder")
431 431 const int mode = 0755; /* or 0777 ? */
432 432
433 433 must_pass(open_temp_repo(&repo, REPOSITORY_FOLDER));
434   -
  434 +
435 435 git__joinpath_n(temp_path, 3, repo->path_repository, GIT_REFS_HEADS_DIR, "empty_dir");
436 436 must_pass(gitfo_mkdir_recurs(temp_path, mode));
437 437
@@ -446,12 +446,12 @@ BEGIN_TEST(pack1, "create a packfile from all the loose rn a repo")
446 446 char temp_path[GIT_PATH_MAX];
447 447
448 448 must_pass(open_temp_repo(&repo, REPOSITORY_FOLDER));
449   -
  449 +
450 450 /* Ensure a known loose ref can be looked up */
451 451 must_pass(git_reference_lookup(&reference, repo, loose_tag_ref_name));
452 452 must_be_true((reference->type & GIT_REF_PACKED) == 0);
453 453 must_be_true(strcmp(reference->name, loose_tag_ref_name) == 0);
454   -
  454 +
455 455 /*
456 456 * We are now trying to pack also a loose reference
457 457 * called `points_to_blob`, to make sure we can properly
@@ -913,7 +913,7 @@ BEGIN_TEST(list0, "try to list all the references in our test repo")
913 913 /* We have exactly 8 refs in total if we include the packed ones:
914 914 * there is a reference that exists both in the packfile and as
915 915 * loose, but we only list it once */
916   - must_be_true(ref_list.count == 8);
  916 + must_be_true(ref_list.count == 8);
917 917
918 918 git_strarray_free(&ref_list);
919 919 git_repository_free(repo);
@@ -925,7 +925,7 @@ BEGIN_TEST(list1, "try to list only the symbolic references")
925 925
926 926 must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
927 927 must_pass(git_reference_listall(&ref_list, repo, GIT_REF_SYMBOLIC));
928   - must_be_true(ref_list.count == 0); /* no symrefs in the test repo */
  928 + must_be_true(ref_list.count == 0); /* no symrefs in the test repo */
929 929
930 930 git_strarray_free(&ref_list);
931 931 git_repository_free(repo);
2  tests/test_lib.h
@@ -15,7 +15,7 @@
15 15 #define BEGIN_SUITE(SNAME) \
16 16 git_testsuite *libgit2_suite_##SNAME(void) {\
17 17 git_testsuite *_gitsuite = git_testsuite_new(#SNAME);
18   -
  18 +
19 19 #define ADD_TEST(TNAME) \
20 20 git_testsuite_add(_gitsuite, _gittest__##TNAME);
21 21

0 comments on commit 932d1ba

Please sign in to comment.
Something went wrong with that request. Please try again.