File indexing completed on 2024-04-28 05:49:27

0001 /*
0002     SPDX-FileCopyrightText: 2021 Waqar Ahmed <waqar.17a@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "kateprivate_export.h"
0009 
0010 class QString;
0011 namespace KTextEditor
0012 {
0013 class MainWindow;
0014 }
0015 
0016 class FileHistory
0017 {
0018 public:
0019     /**
0020      * @brief shows git file history of @p file
0021      * @param file the file whose history you want to see
0022      * @param mainWindow the mainWindow where the toolview with history will open. If null, active mainWindow
0023      * will be used
0024      */
0025     static KATE_PRIVATE_EXPORT void showFileHistory(const QString &file, KTextEditor::MainWindow *mainWindow = nullptr);
0026 };