Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: git-rebase -i not escaping # at the beginning of the line

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:46:53

Hi,

On Wed, 3 Jun 2009, Petr Baudis wrote:
On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:
quoted
Redmine automatically links those log messages to the ticket when we
use this method.  It works well for git commit -m "#1234 story xyz"

However, when we use git rebase -i, all of the lines that include the
# character get stripped out of the commit messages.

How can we escape these?
This definitely sounds like a bug, what git version are you using?
It is sort of a bug, in a very peculiar: try amending such a commit 
_interactively_.  It will not work.

The reason: you are not supposed to start any line in a commit message 
with a '#'.  I would actually have expected "git commit -m" to refuse such 
a line.

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help