File indexing completed on 2024-04-28 05:49:26
0001 /* 0002 SPDX-FileCopyrightText: 2021 Waqar Ahmed <waqar.17a@gmail.com> 0003 SPDX-FileCopyrightText: 2021 Christoph Cullmann <cullmann@kde.org> 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kateprivate_export.h" 0010 0011 class QString; 0012 namespace KTextEditor 0013 { 0014 class MainWindow; 0015 } 0016 0017 /** 0018 * This class shows the diff tree for a commit. 0019 */ 0020 class CommitView 0021 { 0022 public: 0023 /** 0024 * open treeview for commit with @p hash 0025 * @filePath can be path of any file in the repo 0026 */ 0027 static void KATE_PRIVATE_EXPORT openCommit(const QString &hash, const QString &path, KTextEditor::MainWindow *mainWindow); 0028 };