<p>After consulting <a href="https://devhints.io/git-log-format" rel="nofollow noreferrer">this cheatsheet</a>, I think that you are looking for the subject. If I apply:</p>

<pre><code>git log --pretty="%s"
</code></pre>

<p>to one of my git repositories, the following is returned:</p>

<pre><code>learning pointers in golang
receiver struct in golang
embedded structs in golang
multiple spanish words
</code></pre>

<p>In conclusion, I think you should include <code>%s</code> to get the git messages or basically the <code>commit subjects</code>.</p>

CC BY-SA 4.0
2019-12-25T11:40:39.260Z
2019-12-25T11:40:39.260Z
030
<p>I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the installer itself but the commit messages from there are coming through fine.</p>

<p>I'd like to also see the commit messages (changes made) from the submodules to the Jenkins log. Is this possible? If not possible there, would it be possible in the email-blast instead? In the mailer plugin, I have it configured as:</p>

<pre><code>${CHANGES, showPaths=true, format="Commit: %r by %a \n %p \n\t Comment: %m \n", pathFormat="\n\t %p"}
</code></pre>

<p>Also, I kinda inherited Jenkins from an employee that no longer works where I work so I'm very new to this.</p>

CC BY-SA 4.0
2019-12-25T11:30:10.823Z
https://stackoverflow.com/q/7773010/2777965
030
<jenkins><git><jenkins-plugins>
Commit messages from Submodules to Jenkins Change Log
Paul_LayLow
# Commit messages from Submodules to Jenkins Change Log

(Asked by: username_0 on 2019-06-17)

I have a project with 3 submodules that are updated whenever that project is built and the project is built mainly for an installer (which is not in a submodule). Not a lot of changes are made in the installer itself but the commit messages from there are coming through fine.
I'd like to also see the commit messages (changes made) from the submodules to the Jenkins log. Is this possible? If not possible there, would it be possible in the email-blast instead? In the mailer plugin, I have it configured as:
${CHANGES, showPaths=true, format="Commit: %r by %a \n %p \n\t Comment: %m \n", pathFormat="\n\t %p"}

Also, I kinda inherited Jenkins from an employee that no longer works where I work so I'm very new to this.

**Tags:** jenkins, git, jenkins-plugins

> **Comments:**
> **username_1**: https://stackoverflow.com/q/7773010/2777965  

---

## 1 answers

### Answer by username_1 on 2019-12-25. Score: 1

After consulting this cheatsheet, I think that you are looking for the subject. If I apply:
git log --pretty="%s"

to one of my git repositories, the following is returned:
learning pointers in golang
receiver struct in golang
embedded structs in golang
multiple spanish words

In conclusion, I think you should include %s to get the git messages or basically the commit subjects.


---

