Re: [FEATURE] git-commit option to prepend filename to commit message

2017-07-15 Thread John J Foerch
-Original Message- >From: Jeff King <p...@peff.net> >Sent: Jul 15, 2017 12:05 PM >To: John J Foerch <jjfoe...@earthlink.net> >Cc: git@vger.kernel.org >Subject: Re: [FEATURE] git-commit option to prepend filename to commit message > >On Sat, Jul 15,

Re: [FEATURE] git-commit option to prepend filename to commit message

2017-07-15 Thread John J Foerch
Perfect, thank you Hannes! -Original Message- >From: Johannes Sixt <j...@kdbg.org> >Sent: Jul 15, 2017 12:01 PM >To: John J Foerch <jjfoe...@earthlink.net> >Cc: git@vger.kernel.org >Subject: Re: [FEATURE] git-commit option to prepend filename to commit messag

Re: [FEATURE] git-commit option to prepend filename to commit message

2017-07-15 Thread Jeff King
On Sat, Jul 15, 2017 at 10:19:34AM -0400, John J Foerch wrote: > The feature would be a command line option for git commit that would > automatically prepend the ": " to the commit message. The > different cases of its behavior could be: > > - commit affecting a single file, with commit

Re: [FEATURE] git-commit option to prepend filename to commit message

2017-07-15 Thread Johannes Sixt
Am 15.07.2017 um 16:19 schrieb John J Foerch: The feature would be a command line option for git commit that would automatically prepend the ": " to the commit message. Write a prepare-commit-msg hook: https://www.kernel.org/pub/software/scm/git/docs/githooks.html#_prepare_commit_msg --

[FEATURE] git-commit option to prepend filename to commit message

2017-07-15 Thread John J Foerch
Hello, I had an idea for a feature for git commit that I wanted to pass along and see if maybe others would also think this would be useful. Very often, I make commits that affect a single file, and have simple commit messages of this form: : The feature would be a command line option