Skip to content

Commit 72717ee

Browse files
Remove trailing whitespace.
1 parent dc07568 commit 72717ee

File tree

7 files changed

+12
-13
lines changed

7 files changed

+12
-13
lines changed

ext/rugged/rugged.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ static VALUE rb_git_prettify_message(int argc, VALUE *argv, VALUE self)
175175
rb_scan_args(argc, argv, "11", &rb_message, &rb_strip);
176176

177177
Check_Type(rb_message, T_STRING);
178-
178+
179179
switch (TYPE(rb_strip)) {
180180
case T_FALSE:
181181
strip_comments = 0;
@@ -495,4 +495,3 @@ void Init_rugged(void)
495495
rb_mShutdownHook = Data_Wrap_Struct(rb_cObject, NULL, &cleanup_cb, NULL);
496496
rb_global_variable(&rb_mShutdownHook);
497497
}
498-

ext/rugged/rugged_branch_collection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline int rugged_branch_lookup(git_reference **branch, git_repository *r
5151

5252
if (strncmp(branch_name, "refs/heads/", strlen("refs/heads/")) == 0 ||
5353
strncmp(branch_name, "refs/remotes/", strlen("refs/remotes/")) == 0)
54-
return git_reference_lookup(branch, repo, branch_name);
54+
return git_reference_lookup(branch, repo, branch_name);
5555

5656
if ((error = git_branch_lookup(branch, repo, branch_name, GIT_BRANCH_LOCAL)) == GIT_OK ||
5757
error != GIT_ENOTFOUND)
@@ -70,7 +70,7 @@ static inline int rugged_branch_lookup(git_reference **branch, git_repository *r
7070

7171
return error;
7272
} else {
73-
rb_raise(rb_eTypeError, "Expecting a String or Rugged::Branch instance");
73+
rb_raise(rb_eTypeError, "Expecting a String or Rugged::Branch instance");
7474
}
7575
}
7676

@@ -281,7 +281,7 @@ static VALUE rb_git_branch_collection_each_name(int argc, VALUE *argv, VALUE sel
281281
*
282282
* Delete the specified branch.
283283
*
284-
* If a Rugged::Branch object was passed, the object will become
284+
* If a Rugged::Branch object was passed, the object will become
285285
* invalidated and won't be able to be used for any other operations.
286286
*/
287287
static VALUE rb_git_branch_collection_delete(VALUE self, VALUE rb_name_or_branch)

ext/rugged/rugged_diff_delta.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static VALUE rb_git_delta_status_fromC(git_delta_t status)
7474
static VALUE rb_git_delta_status_char_fromC(git_delta_t status)
7575
{
7676
char status_char[2];
77-
77+
7878
status_char[0] = git_diff_status_char(status);
7979
status_char[1] = '\0';
8080

ext/rugged/rugged_diff_line.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ VALUE rugged_diff_line_new(const git_diff_line *line)
5858
break;
5959
case GIT_DIFF_LINE_BINARY:
6060
rb_line_origin = CSTR2SYM("binary");
61-
break;
61+
break;
6262
default:
6363
/* FIXME: raise here instead? */
6464
rb_line_origin = CSTR2SYM("unknown");

ext/rugged/rugged_object.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ VALUE rugged_object_rev_parse(VALUE rb_repo, VALUE rb_spec, int as_obj)
285285
* Find and return a single object inside +repo+ as specified by the
286286
* git revision string +str+.
287287
*
288-
* See http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions or
288+
* See http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions or
289289
* <code>man gitrevisions</code> for information on the accepted syntax.
290290
*
291291
* Raises a Rugged::InvalidError if +str+ does not contain a valid revision string.
@@ -301,7 +301,7 @@ VALUE rb_git_object_rev_parse(VALUE klass, VALUE rb_repo, VALUE rb_spec)
301301
* Find and return the id of the object inside +repo+ as specified by the
302302
* git revision string +str+.
303303
*
304-
* See http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions or
304+
* See http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions or
305305
* <code>man gitrevisions</code> for information on the accepted syntax.
306306
*
307307
* Raises a Rugged::InvalidError if +str+ does not contain a valid revision string.

ext/rugged/rugged_remote_collection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static VALUE rb_git_remote_collection__each(VALUE self, int only_names)
157157

158158
VALUE rb_repo;
159159

160-
if (!rb_block_given_p()) {
160+
if (!rb_block_given_p()) {
161161
if (only_names)
162162
return rb_funcall(self, rb_intern("to_enum"), 1, CSTR2SYM("each_name"));
163163
else

ext/rugged/rugged_settings.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static VALUE rb_git_set_option(VALUE self, VALUE option, VALUE value)
7878
val = NUM2SIZET(value);
7979
git_libgit2_opts(GIT_OPT_SET_MWINDOW_SIZE, val);
8080
}
81-
81+
8282
else if (strcmp(opt, "mwindow_mapped_limit") == 0) {
8383
size_t val;
8484
Check_Type(value, T_FIXNUM);
@@ -123,13 +123,13 @@ static VALUE rb_git_get_option(VALUE self, VALUE option)
123123
git_libgit2_opts(GIT_OPT_GET_MWINDOW_SIZE, &val);
124124
return SIZET2NUM(val);
125125
}
126-
126+
127127
else if (strcmp(opt, "mwindow_mapped_limit") == 0) {
128128
size_t val;
129129
git_libgit2_opts(GIT_OPT_GET_MWINDOW_MAPPED_LIMIT, &val);
130130
return SIZET2NUM(val);
131131
}
132-
132+
133133
else if (strcmp(opt, "search_path_global") == 0) {
134134
return get_search_path(GIT_CONFIG_LEVEL_GLOBAL);
135135
}

0 commit comments

Comments
 (0)