<feed xmlns='http://www.w3.org/2005/Atom'>
<title>forums/git-tools/hooks/prepare-commit-msg, branch master</title>
<subtitle>The forums.mageia.org Website</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/'/>
<entry>
<title>[ticket/9824] Use printf instead of echo to render \n.</title>
<updated>2011-03-02T01:59:04+00:00</updated>
<author>
<name>Oleg Pudeyev</name>
<email>oleg@bsdpower.com</email>
</author>
<published>2011-03-02T01:20:29+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=b90e01392c1b88f5403d39e044cf80353923ca54'/>
<id>b90e01392c1b88f5403d39e044cf80353923ca54</id>
<content type='text'>
On FreeBSD `echo "\n"` prints \n verbatim. Use printf instead.

PHPBB3-9824
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On FreeBSD `echo "\n"` prints \n verbatim. Use printf instead.

PHPBB3-9824
</pre>
</div>
</content>
</entry>
<entry>
<title>[ticket/9824] Add space after [ticket/12345] in prepared commit message.</title>
<updated>2011-03-01T23:24:34+00:00</updated>
<author>
<name>Andreas Fischer</name>
<email>bantu@phpbb.com</email>
</author>
<published>2011-03-01T23:07:45+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=9bed2b119c9d3214b7869cecb416a231878aad66'/>
<id>9bed2b119c9d3214b7869cecb416a231878aad66</id>
<content type='text'>
PHPBB3-9824
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9824
</pre>
</div>
</content>
</entry>
<entry>
<title>[ticket/9824] Remove space after PHPBB3-12345 in prepared commit message.</title>
<updated>2011-03-01T23:04:45+00:00</updated>
<author>
<name>Andreas Fischer</name>
<email>bantu@phpbb.com</email>
</author>
<published>2011-03-01T23:04:45+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=16a46e6a2451b39310cc4352ab8fae603a07effd'/>
<id>16a46e6a2451b39310cc4352ab8fae603a07effd</id>
<content type='text'>
PHPBB3-9824
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9824
</pre>
</div>
</content>
</entry>
<entry>
<title>[task/git-tools] Append ticket identifier to commit message prior to editing.</title>
<updated>2010-08-10T13:48:40+00:00</updated>
<author>
<name>Chris Smith</name>
<email>toonarmy@phpbb.com</email>
</author>
<published>2010-07-07T23:27:45+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=bfa7b287344462bbd6f8a0f02810f7a6b225f65a'/>
<id>bfa7b287344462bbd6f8a0f02810f7a6b225f65a</id>
<content type='text'>
PHPBB3-9770
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9770
</pre>
</div>
</content>
</entry>
<entry>
<title>[task/git-tools] move ticket id appending to commit-msg hook</title>
<updated>2010-07-12T01:04:29+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2010-06-22T14:42:29+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=6b2f4b6a850493fa0277ae38ee816d7c5a3a2311'/>
<id>6b2f4b6a850493fa0277ae38ee816d7c5a3a2311</id>
<content type='text'>
PHPBB3-9770
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9770
</pre>
</div>
</content>
</entry>
<entry>
<title>[task/git-tools] append ticket id to git log message</title>
<updated>2010-07-12T01:04:29+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2010-06-22T12:42:02+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=f0509e4620643549caa7a486d54b12d53617ab94'/>
<id>f0509e4620643549caa7a486d54b12d53617ab94</id>
<content type='text'>
PHPBB3-9770
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PHPBB3-9770
</pre>
</div>
</content>
</entry>
<entry>
<title>[git-tools] Prepend the branch to the commit message for all branches.</title>
<updated>2010-04-03T01:13:48+00:00</updated>
<author>
<name>Chris Smith</name>
<email>toonarmy@phpbb.com</email>
</author>
<published>2010-04-03T01:13:48+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6'/>
<id>3e5236dcd62f1d0b18cd3c92661a2287b5bbf2d6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[git-tools] Improvements on prepare-commt-msg hook</title>
<updated>2010-03-13T12:10:14+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2010-03-13T12:04:44+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=6a9304021f41cd8319ccb009bb24792ffc5438bc'/>
<id>6a9304021f41cd8319ccb009bb24792ffc5438bc</id>
<content type='text'>
prepare-commit-hook now uses `git symbolic-ref HEAD` instead of reading
$GIT_DIR/HEAD directly. This seems to be a more portable solution.

Thanks to Chris (cs278/ToonArmy) for the suggestion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
prepare-commit-hook now uses `git symbolic-ref HEAD` instead of reading
$GIT_DIR/HEAD directly. This seems to be a more portable solution.

Thanks to Chris (cs278/ToonArmy) for the suggestion.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add feature/ support to branchname hook</title>
<updated>2010-03-08T00:04:33+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2010-03-08T00:04:33+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=0a6db697e6f50551270c7bc3e61fb587b7043099'/>
<id>0a6db697e6f50551270c7bc3e61fb587b7043099</id>
<content type='text'>
The previously introduced branchname hook now will also use feature/
branch names, in addition to the existing bug/.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previously introduced branchname hook now will also use feature/
branch names, in addition to the existing bug/.
</pre>
</div>
</content>
</entry>
<entry>
<title>Adding a branchname prepare-commit-msg hook</title>
<updated>2010-03-07T23:41:42+00:00</updated>
<author>
<name>Igor Wiedler</name>
<email>igor@wiedler.ch</email>
</author>
<published>2010-03-07T23:41:42+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/web/forums/commit/?id=d0d1ab54710f7a7f3426b2bcdfd63e9df24c046e'/>
<id>d0d1ab54710f7a7f3426b2bcdfd63e9df24c046e</id>
<content type='text'>
Git supports several hooks, some of which are client-side. The
prepare-commit-msg hook is run right after a `git commit` call, before
the editor is opened. This allows the initial message to be altered.

This hook will check if the current branch name begins with `bug/`, in
which case it will prepend `[$branchname]` to the commit message. This
makes it easier to create proper commit messages.

http://wiki.phpbb.com/Git#Commit_Messages

For more information refer to the hook source.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Git supports several hooks, some of which are client-side. The
prepare-commit-msg hook is run right after a `git commit` call, before
the editor is opened. This allows the initial message to be altered.

This hook will check if the current branch name begins with `bug/`, in
which case it will prepend `[$branchname]` to the commit message. This
makes it easier to create proper commit messages.

http://wiki.phpbb.com/Git#Commit_Messages

For more information refer to the hook source.
</pre>
</div>
</content>
</entry>
</feed>
