File indexing completed on 2025-03-09 05:11:43
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "libkommit_export.h" 0010 #include <git2/remote.h> 0011 0012 namespace Git 0013 { 0014 0015 class LIBKOMMIT_EXPORT FetchOptions 0016 { 0017 public: 0018 FetchOptions(); 0019 0020 enum class DownloadTags { 0021 Unspecified = 0, 0022 Auto, 0023 None, 0024 All, 0025 }; 0026 0027 enum class Prune { 0028 Unspecified = 0, 0029 Prune, 0030 NoPrune, 0031 }; 0032 0033 DownloadTags downloadTags{DownloadTags::Unspecified}; 0034 Prune prune{Prune::Unspecified}; 0035 void applyToFetchOptions(git_fetch_options *opts) const; 0036 }; 0037 0038 }