ProjectExplorer icon indicating copy to clipboard operation
ProjectExplorer copied to clipboard

Commit with dynamic text without interface

Open lscheffler opened this issue 7 years ago • 3 comments

A posibility to commit with a dynamic text without raising a additional window.

I do a lot of atomic commits just for progressive backup, there is no need for much more then a timestamp. :)

lscheffler avatar Nov 23 '17 16:11 lscheffler

Since both Mercurial and Git require a commit message, we have to use something. Also, how would Project Explorer know that sometimes you want a commit message and sometimes you don't? How about if the Commit Message dialog appears but the editbox is filled with something generic like "Committing changes" and it's selected? That way, if you don't want to type something you just click OK and if you do want a commit message, you just type it.

DougHennig avatar Nov 23 '17 21:11 DougHennig

How to decide? A switch on version control props. (Bin2Text names it Auto commit but you mean something different on this) I turn it off if I need, or I just commit and do later git commit --amend on bash

git commit -a -m "line"1 -m "line2" .. -m "linex" works pretty well

And if I like a dialog, then vi as it comes with git. Not everybodies taste, I guess. You even can provide a template for it .... Looks like there is a need for a hook that decides what to do. -your dialog -just do it -raise vi via git commit ...?

lscheffler avatar Nov 23 '17 21:11 lscheffler

This could be done with an option: Display Commit Dialog. If turned off, you have to specify text to use as the default message. It could contain placeholders such as {CommitTime} for a timestamp.

DougHennig avatar Nov 26 '20 21:11 DougHennig