{"thread":{"id":"19649","subject":"git-rebase -i not escaping # at the beginning of the line","startedAt":"2009-06-03T10:47:18Z","lastAt":"2009-06-03T11:18:36Z","messageCount":4,"participants":["Petr Baudis","Johannes Schindelin","Alberto Leal"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"115331","messageId":"20090603104718.GA10035@machine.or.cz","threadId":"19649","inReplyTo":"ce2236de-8670-4213-8474-52365f0397bc@z14g2000yqa.googlegroups.com","subject":"git-rebase -i not escaping # at the beginning of the line","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2009-06-03T10:47:18Z","receivedAt":"2009-06-03T10:47:18Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:\n> Redmine automatically links those log messages to the ticket when we\n> use this method.  It works well for git commit -m \"#1234 story xyz\"\n> \n> However, when we use git rebase -i, all of the lines that include the\n> # character get stripped out of the commit messages.\n> \n> How can we escape these?\n\nThis definitely sounds like a bug, what git version are you using?\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nThe lyf so short, the craft so long to lerne. -- Chaucer\n"},{"id":"115333","messageId":"alpine.DEB.1.00.0906031252070.10241@intel-tinevez-2-302","threadId":"19649","inReplyTo":"20090603104718.GA10035@machine.or.cz","subject":"Re: git-rebase -i not escaping # at the beginning of the line","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-06-03T10:53:27Z","receivedAt":"2009-06-03T10:53:27Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 3 Jun 2009, Petr Baudis wrote:\n\n> On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:\n> > Redmine automatically links those log messages to the ticket when we\n> > use this method.  It works well for git commit -m \"#1234 story xyz\"\n> > \n> > However, when we use git rebase -i, all of the lines that include the\n> > # character get stripped out of the commit messages.\n> > \n> > How can we escape these?\n> \n> This definitely sounds like a bug, what git version are you using?\n\nIt is sort of a bug, in a very peculiar: try amending such a commit \n_interactively_.  It will not work.\n\nThe reason: you are not supposed to start any line in a commit message \nwith a '#'.  I would actually have expected \"git commit -m\" to refuse such \na line.\n\nCiao,\nDscho\n"},{"id":"115334","messageId":"20090603105703.GB10035@machine.or.cz","threadId":"19649","inReplyTo":"alpine.DEB.1.00.0906031252070.10241@intel-tinevez-2-302","subject":"Re: git-rebase -i not escaping # at the beginning of the line","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2009-06-03T10:57:03Z","receivedAt":"2009-06-03T10:57:03Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"  Hi,\n\nOn Wed, Jun 03, 2009 at 12:53:27PM +0200, Johannes Schindelin wrote:\n> On Wed, 3 Jun 2009, Petr Baudis wrote:\n> \n> > On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:\n> > > Redmine automatically links those log messages to the ticket when we\n> > > use this method.  It works well for git commit -m \"#1234 story xyz\"\n> > > \n> > > However, when we use git rebase -i, all of the lines that include the\n> > > # character get stripped out of the commit messages.\n> > > \n> > > How can we escape these?\n> > \n> > This definitely sounds like a bug, what git version are you using?\n> \n> It is sort of a bug, in a very peculiar: try amending such a commit \n> _interactively_.  It will not work.\n> \n> The reason: you are not supposed to start any line in a commit message \n> with a '#'.  I would actually have expected \"git commit -m\" to refuse such \n> a line.\n\n  the line can also come there during import from another VCS, through\nemail, or so... I think it's more reasonable to deal with them when\nfilling in the commit message to the editor than in all the other\nplaces.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nThe lyf so short, the craft so long to lerne. -- Chaucer\n"},{"id":"115336","messageId":"88ca9e240906030418x628ab5cap56ddf3fcc4ede78c@mail.gmail.com","threadId":"19649","inReplyTo":"20090603104718.GA10035-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org","subject":"Re: git-rebase -i not escaping # at the beginning of the line","fromName":"Alberto Leal","fromEmail":"albertonb-re5jqeeqqe8avxtiumwx3w@public.gmane.org","sentAt":"2009-06-03T11:18:36Z","receivedAt":"2009-06-03T11:18:36Z","isPatch":false,"sender":{"key":"albertonb-re5jqeeqqe8avxtiumwx3w@public.gmane.org","avatar":null},"body":"I`ve been using this and never had any problem.\n\n\nOn Wed, Jun 3, 2009 at 7:47 AM, Petr Baudis <pasky-+ZI9xUNit7I@public.gmane.org> wrote:\n\n>\n> On Tue, Jun 02, 2009 at 12:28:41PM -0700, donnoman wrote:\n> > Redmine automatically links those log messages to the ticket when we\n> > use this method.  It works well for git commit -m \"#1234 story xyz\"\n> >\n> > However, when we use git rebase -i, all of the lines that include the\n> > # character get stripped out of the commit messages.\n> >\n> > How can we escape these?\n>\n> This definitely sounds like a bug, what git version are you using?\n>\n> --\n>                                Petr \"Pasky\" Baudis\n> The lyf so short, the craft so long to lerne. -- Chaucer\n>\n> >\n>\n\n--~--~---------~--~----~------------~-------~--~----~\nYou received this message because you are subscribed to the Google Groups \"Git for human beings\" group.\nTo post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org\nTo unsubscribe from this group, send email to git-users+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org\nFor more options, visit this group at http://groups.google.com/group/git-users?hl=en\n-~----------~----~----~----~------~----~------~--~---\n\n"}]}