forked from qt-creator/qt-creator
Git: Include committer details in Show
Task-number: QTCREATORBUG-12834 Change-Id: I3a38f9bd7e98b9ef982ea51c2ffccbdaf3595a9c Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7527d66ce6
commit
23b89f1e85
@@ -87,6 +87,12 @@ static const char HEAD[] = "HEAD";
|
||||
static const char CHERRY_PICK_HEAD[] = "CHERRY_PICK_HEAD";
|
||||
static const char noColorOption[] = "--no-color";
|
||||
static const char decorateOption[] = "--decorate";
|
||||
static const char showFormatC[] =
|
||||
"--pretty=format:commit %H%n"
|
||||
"Author: %an <%ae>, %ad (%ar)%n"
|
||||
"Committer: %cn <%ce>, %cd (%cr)%n"
|
||||
"%n"
|
||||
"%B";
|
||||
|
||||
using namespace Core;
|
||||
using namespace DiffEditor;
|
||||
@@ -367,7 +373,7 @@ void ShowController::reload()
|
||||
{
|
||||
QStringList args;
|
||||
args << QLatin1String("show") << QLatin1String("-s") << QLatin1String(noColorOption)
|
||||
<< QLatin1String(decorateOption) << m_id;
|
||||
<< QLatin1String(decorateOption) << QLatin1String(showFormatC) << m_id;
|
||||
m_state = GettingDescription;
|
||||
runCommand(QList<QStringList>() << args, gitClient()->encoding(m_directory, "i18n.commitEncoding"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user