For each customer repository change the file ChangeLog in branch master
as last step. The git commit for this file will be used as output, so this file has always be the last to be checked in.
This commit is contained in:
parent
a45e552d90
commit
5427844977
@ -120,7 +120,10 @@ QStringList GitClient::gitShowReason() {
|
|||||||
// %h: commit (short form)
|
// %h: commit (short form)
|
||||||
// %s: commit message
|
// %s: commit message
|
||||||
// %cI: commit date, strict ISO 8601 format
|
// %cI: commit date, strict ISO 8601 format
|
||||||
Command c("git show -s --format=\"c=%h m=%s d=%cI\"");
|
// Note: use master branch. By convention, there is a ChangeLog file
|
||||||
|
// in the root of the repository, which has to be always the last file
|
||||||
|
// to be checked in when the customer repository somehow changed.
|
||||||
|
Command c("git show origin/master -s --format=\"c=%h m=%s d=%cI\"");
|
||||||
if (c.execute(m_customerRepository)) {
|
if (c.execute(m_customerRepository)) {
|
||||||
QString const s = c.getCommandResult().trimmed();
|
QString const s = c.getCommandResult().trimmed();
|
||||||
int const c = s.indexOf("c=");
|
int const c = s.indexOf("c=");
|
||||||
|
Loading…
Reference in New Issue
Block a user