{"thread":{"id":"31980","subject":"Why does git-commit --template want the template to be modified ?","startedAt":"2012-10-30T10:53:08Z","lastAt":"2012-10-30T14:23:25Z","messageCount":4,"participants":["Francis Moreau","Tomas Carnecky","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"202193","messageId":"CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com","threadId":"31980","inReplyTo":null,"subject":"Why does git-commit --template want the template to be modified ?","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2012-10-30T10:53:08Z","receivedAt":"2012-10-30T10:53:08Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi,\n\nI'm using git-commit with the --template option. The template I'm\ngiven is self sufficient for my purpose but as stated in the\ndocumentation, git-commit wants the template to be edited otherwise it\naborts the operation.\n\nIs it possible to change this ?\n\nThanks\n-- \nFrancis\n"},{"id":"202195","messageId":"1351595365-ner-1835@calvin","threadId":"31980","inReplyTo":"CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com","subject":"Re: Why does git-commit --template want the template to be modified ?","fromName":"Tomas Carnecky","fromEmail":"tomas.carnecky@gmail.com","sentAt":"2012-10-30T11:09:25Z","receivedAt":"2012-10-30T11:09:25Z","isPatch":false,"sender":{"key":"tomas.carnecky@gmail.com","avatar":null},"body":"On Tue, 30 Oct 2012 11:53:08 +0100, Francis Moreau <francis.moro@gmail.com> wrote:\n> Hi,\n> \n> I'm using git-commit with the --template option. The template I'm\n> given is self sufficient for my purpose but as stated in the\n> documentation, git-commit wants the template to be edited otherwise it\n> aborts the operation.\n> \n> Is it possible to change this ?\n\nIt seems you want -F instead of --template.\n"},{"id":"202197","messageId":"508FB694.10506@viscovery.net","threadId":"31980","inReplyTo":"CAC9WiBjeuy8dpSnp5Jq55hs1-CJUzwpH70GZ1ZGOF2dAAeypaw@mail.gmail.com","subject":"Re: Why does git-commit --template want the template to be modified ?","fromName":"Johannes Sixt","fromEmail":"j.sixt@viscovery.net","sentAt":"2012-10-30T11:14:28Z","receivedAt":"2012-10-30T11:14:28Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 10/30/2012 11:53, schrieb Francis Moreau:\n> I'm using git-commit with the --template option. The template I'm\n> given is self sufficient for my purpose but as stated in the\n> documentation, git-commit wants the template to be edited otherwise it\n> aborts the operation.\n> \n> Is it possible to change this ?\n\nPerhaps you wanted to use --file instead of --template?\n\n-- Hannes\n"},{"id":"202202","messageId":"CAC9WiBgxZk3pRoj7nuqXdXKHdaHNpx+9h16o5N-vFAGVoH0NMg@mail.gmail.com","threadId":"31980","inReplyTo":"1351595365-ner-1835@calvin","subject":"Re: Why does git-commit --template want the template to be modified ?","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2012-10-30T14:23:25Z","receivedAt":"2012-10-30T14:23:25Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi,\n\nOn Tue, Oct 30, 2012 at 12:09 PM, Tomas Carnecky\n<tomas.carnecky@gmail.com> wrote:\n> On Tue, 30 Oct 2012 11:53:08 +0100, Francis Moreau <francis.moro@gmail.com> wrote:\n>> Hi,\n>>\n>> I'm using git-commit with the --template option. The template I'm\n>> given is self sufficient for my purpose but as stated in the\n>> documentation, git-commit wants the template to be edited otherwise it\n>> aborts the operation.\n>>\n>> Is it possible to change this ?\n>\n> It seems you want -F instead of --template.\n\nYes, but I want git to still parse the log and sanitize it (remove\ntrailing whitespaces, comments ...)\n\nI actually found that \"-F --edit\" is what I needed.\n\nThanks both for your answer.\n-- \nFrancis\n"}]}