Re: git-commit: select which files to commit while editing the commit message
From: Sean <hidden>
Date: 2016-08-11 20:35:21
On Fri, 08 Dec 2006 11:18:16 -0800 Junio C Hamano [off-list ref] wrote:
Personally, I would refuse to use such a modified git, because often the first thing I would do in the commit log buffer is check the listed files and remove the '# ...' lines while typing. I do not want that to affect the set of changes I staged in any way.
Your usage should not affected at all by the addition of this feature. One of the comment lines could be magic, in that if it is missing the feature is disabled. Something like: # *** Editable Commit List *** Or some such at the top of the list, where if it is missing after commit message editing, the post processing of the file list will be completely disabled. Another alternative would be to just enable the feature with an -A or some other commit command line option, so that those uninterested in such a feature don't have to even see it. It would be interesting to hear from Pasky on how this feature has worked out in practice for Cogito users and whether he thinks it would be a good addition to Git.