|
rpm-build |
c487f7 |
/*
|
|
rpm-build |
c487f7 |
* Copyright © 2015 Red Hat, Inc
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This program is free software; you can redistribute it and/or
|
|
rpm-build |
c487f7 |
* modify it under the terms of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License as published by the Free Software Foundation; either
|
|
rpm-build |
c487f7 |
* version 2.1 of the License, or (at your option) any later version.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* This library is distributed in the hope that it will be useful,
|
|
rpm-build |
c487f7 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
rpm-build |
c487f7 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
rpm-build |
c487f7 |
* Lesser General Public License for more details.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* You should have received a copy of the GNU Lesser General Public
|
|
rpm-build |
c487f7 |
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
rpm-build |
c487f7 |
*
|
|
rpm-build |
c487f7 |
* Authors:
|
|
rpm-build |
c487f7 |
* Alexander Larsson <alexl@redhat.com>
|
|
rpm-build |
c487f7 |
*/
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#ifndef __BUILDER_GIT_H__
|
|
rpm-build |
c487f7 |
#define __BUILDER_GIT_H__
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#include "builder-context.h"
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
G_BEGIN_DECLS
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
typedef enum {
|
|
rpm-build |
c487f7 |
FLATPAK_GIT_MIRROR_FLAGS_UPDATE = 1 << 0,
|
|
rpm-build |
c487f7 |
FLATPAK_GIT_MIRROR_FLAGS_MIRROR_SUBMODULES = 1 << 1,
|
|
rpm-build |
c487f7 |
FLATPAK_GIT_MIRROR_FLAGS_DISABLE_FSCK = 1 << 2,
|
|
rpm-build |
c487f7 |
FLATPAK_GIT_MIRROR_FLAGS_DISABLE_SHALLOW = 1 << 3,
|
|
rpm-build |
c487f7 |
FLATPAK_GIT_MIRROR_FLAGS_WILL_FETCH_FROM = 1 << 4,
|
|
rpm-build |
c487f7 |
} FlatpakGitMirrorFlags;
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
gboolean builder_git_mirror_repo (const char *repo_location,
|
|
rpm-build |
c487f7 |
const char *destination_path,
|
|
rpm-build |
c487f7 |
FlatpakGitMirrorFlags flags,
|
|
rpm-build |
c487f7 |
const char *ref,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
char * builder_git_get_current_commit (const char *repo_location,
|
|
rpm-build |
c487f7 |
const char *branch,
|
|
rpm-build |
c487f7 |
gboolean ensure_commit,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
gboolean builder_git_checkout (const char *repo_location,
|
|
rpm-build |
c487f7 |
const char *branch,
|
|
rpm-build |
c487f7 |
GFile *dest,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
gboolean builder_git_shallow_mirror_ref (const char *repo_location,
|
|
rpm-build |
c487f7 |
const char *destination_path,
|
|
rpm-build |
c487f7 |
const char *ref,
|
|
rpm-build |
c487f7 |
BuilderContext *context,
|
|
rpm-build |
c487f7 |
GError **error);
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
G_END_DECLS
|
|
rpm-build |
c487f7 |
|
|
rpm-build |
c487f7 |
#endif /* __BUILDER_GIT_H__ */
|