diff options
author | Dan Nicholson <dbn@endlessos.org> | 2023-02-07 14:48:15 -0700 |
---|---|---|
committer | Dan Nicholson <dbn@endlessos.org> | 2023-02-07 14:50:08 -0700 |
commit | b54f4864893e078dc496d9c479e8b2568d12659d (patch) | |
tree | 1f5ab8711c8716e10c66d7d0d00d1dc6b3914108 /src/libostree/ostree-repo-prune.c | |
parent | af505336c2e95820c98fc8e32bce665d5a03c795 (diff) | |
download | ostree-b54f4864893e078dc496d9c479e8b2568d12659d.tar.gz |
Strip trailing whitespace on all C files
My editor started following the configuration in .editorconfig and is
applying this rule to many files I'm editing. Let's just get this over
with and strip everything. This was done like so:
git ls-files | grep '\.[ch]$' | xargs sed -ri 's/\s+$//'
Diffstat (limited to 'src/libostree/ostree-repo-prune.c')
-rw-r--r-- | src/libostree/ostree-repo-prune.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libostree/ostree-repo-prune.c b/src/libostree/ostree-repo-prune.c index e53b8163..9394c621 100644 --- a/src/libostree/ostree-repo-prune.c +++ b/src/libostree/ostree-repo-prune.c @@ -365,7 +365,7 @@ ostree_repo_traverse_reachable_refs (OstreeRepo *self, GCancellable *cancellable, GError **error) { - return traverse_reachable_internal (self, + return traverse_reachable_internal (self, OSTREE_REPO_COMMIT_TRAVERSE_FLAG_NONE, depth, reachable, cancellable, error); @@ -439,9 +439,9 @@ ostree_repo_prune (OstreeRepo *self, if (commit_only) { if (!ostree_repo_list_commit_objects_starting_with (self, "", &objects, cancellable, error)) - return FALSE; + return FALSE; } - else + else { objects = ostree_repo_list_objects_set (self, OSTREE_REPO_LIST_OBJECTS_ALL | OSTREE_REPO_LIST_OBJECTS_NO_PARENTS, cancellable, error); @@ -519,11 +519,11 @@ ostree_repo_prune_from_reachable (OstreeRepo *self, g_autoptr(GHashTable) objects = NULL; OstreeRepoPruneFlags flags = options->flags; gboolean commit_only = (flags & OSTREE_REPO_PRUNE_FLAGS_COMMIT_ONLY) > 0; - if (commit_only) + if (commit_only) { if (!ostree_repo_list_commit_objects_starting_with (self, "", &objects, cancellable, error)) - return FALSE; - } + return FALSE; + } else { objects = |