-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feature request: „git config merge.edit“ #1792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
That is the opposite of the behavior I observe here. Since you have been asked gently in the issue reporting template, and chose to ignore it, let me ask you not so gently anymore: please provide an MCVE (and specify exactly what Git for Windows version you are using). |
(FWIW https://git-scm.com/docs/git-merge#git-merge---edit also suggests that the default behavior is to always open the editor.) |
Thanks to the MCVE hint. I did a fresh install of git (64-Bit) on Windows 10 and accepted all default settings for the install. The git version is "git version 2.18.0.windows.1". I opened a default Windows command window (no bash). Steps to reproduce: Result:
Comments: Summary: |
I tried that MCVE, but I got this:
Indeed. I have no idea why, either. Could it be that there is already a
While I still do not understand what is different in your setup than in mine that would cause that difference in behavior, let's get you started on implementing your desired feature. Step number one: install the Git for Windows SDKSimply download the installer from here and run it. It will download several hundred megabytes of data, and a gigabyte on disk, I think, so please be patient. Step number two: build Git from sourceThis should be as easy as Step number three: patch the source code.First, switch to the worktree: Next, exit the appropriate file. To find out which one that is, I would follow the lead of Then, imitate the code for If you get stuck at any point, please do not hesitate to ask for help. |
@Thomas-Lohrum you do not intend to give back to this project by contributing a patch to implement this, do you? |
Git's default behaviour is to open an editor on a merge. As such my suggestion is not required. I can not tell why it does not work on my machine or on my colleagues. Setting GIT_MERGE_AUTOEDIT to true, does solve the requirement, though. Thanks for your offer and your help. Thomas |
By default, Git does not open an editor to edit a commit-message when merging. Instead a default message is used. When set to true, this variable tells Git to open an editor before a commit is completed (equivalent to giving the --edit option from the command line). When set to false a commit is completed without interference (equivalent to giving the --no-edit option from the command line).
The text was updated successfully, but these errors were encountered: