Sha256: 94aa152e2f3418fbc2a17f0ea0b2b5d5a75e54f2da6bd7fd6a65d9ff73974315
Contents?: true
Size: 1.65 KB
Versions: 3
Compression:
Stored size: 1.65 KB
Contents
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #ifndef INCLUDE_git_push_h__ #define INCLUDE_git_push_h__ #include "common.h" #include "pack.h" /** * @file git2/push.h * @brief Git push management functions * @defgroup git_push push management functions * @ingroup Git * @{ */ GIT_BEGIN_DECL /** * Controls the behavior of a git_push object. */ typedef struct { unsigned int version; /** * If the transport being used to push to the remote requires the creation * of a pack file, this controls the number of worker threads used by * the packbuilder when creating that pack file to be sent to the remote. * * If set to 0, the packbuilder will auto-detect the number of threads * to create. The default value is 1. */ unsigned int pb_parallelism; } git_push_options; #define GIT_PUSH_OPTIONS_VERSION 1 #define GIT_PUSH_OPTIONS_INIT { GIT_PUSH_OPTIONS_VERSION } /** * Initializes a `git_push_options` with default values. Equivalent to * creating an instance with GIT_PUSH_OPTIONS_INIT. * * @param opts the `git_push_options` instance to initialize. * @param version the version of the struct; you should pass * `GIT_PUSH_OPTIONS_VERSION` here. * @return Zero on success; -1 on failure. */ GIT_EXTERN(int) git_push_init_options( git_push_options *opts, unsigned int version); /** Push network progress notification function */ typedef int (*git_push_transfer_progress)( unsigned int current, unsigned int total, size_t bytes, void* payload); /** @} */ GIT_END_DECL #endif
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rugged-0.22.2 | vendor/libgit2/include/git2/push.h |
rugged-0.23.0b1 | vendor/libgit2/include/git2/push.h |
rugged-0.22.1b1 | vendor/libgit2/include/git2/push.h |