From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Petr Baudis <pasky@ucw.cz>
Cc: donnoman@gmail.com, git-users@googlegroups.com, git@vger.kernel.org
Subject: Re: git-rebase -i not escaping # at the beginning of the line
Date: Wed, 3 Jun 2009 12:53:27 +0200 (CEST) [thread overview]
Message-ID: <alpine.DEB.1.00.0906031252070.10241@intel-tinevez-2-302> (raw)
In-Reply-To: <20090603104718.GA10035@machine.or.cz>
Hi,
On Wed, 3 Jun 2009, Petr Baudis wrote:
> On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:
> > 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
next prev parent reply other threads:[~2009-06-03 10:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ce2236de-8670-4213-8474-52365f0397bc@z14g2000yqa.googlegroups.com>
2009-06-03 10:47 ` git-rebase -i not escaping # at the beginning of the line Petr Baudis
2009-06-03 10:53 ` Johannes Schindelin [this message]
2009-06-03 10:57 ` Petr Baudis
[not found] ` <20090603104718.GA10035-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009-06-03 11:18 ` Alberto Leal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.1.00.0906031252070.10241@intel-tinevez-2-302 \
--to=johannes.schindelin@gmx.de \
--cc=donnoman@gmail.com \
--cc=git-users@googlegroups.com \
--cc=git@vger.kernel.org \
--cc=pasky@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).