File indexing completed on 2025-03-09 05:11:41
0001 /* 0002 SPDX-FileCopyrightText: 2022 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #include "note.h" 0008 0009 #include <git2/notes.h> 0010 0011 namespace Git 0012 { 0013 0014 Note::Note(git_note *note) 0015 : mNote{note} 0016 0017 { 0018 mAuthor.reset(new Signature{git_note_author(note)}); 0019 mCommitter.reset(new Signature{git_note_committer(note)}); 0020 mMesage = git_note_message(note); 0021 } 0022 0023 QSharedPointer<Signature> Note::author() const 0024 { 0025 return mAuthor; 0026 } 0027 0028 QSharedPointer<Signature> Note::committer() const 0029 { 0030 return mCommitter; 0031 } 0032 0033 QString Note::mesage() const 0034 { 0035 return mMesage; 0036 } 0037 0038 }