aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/temporarypatchfile.h
blob: de6d13a72a6d693fc09a7a7f1e9fa32e7c95c511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2025 Andre Hartmann <aha_1980@gmx.de>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/filepath.h>
#include <utils/temporaryfile.h>

namespace Git::Internal {

class TemporaryPatchFile
{
public:
    TemporaryPatchFile(const QString &patch);

    Utils::FilePath filePath() const;

private:
    std::unique_ptr<Utils::TemporaryFile> patchFile;
};

} // Git::Internal