vscode-git-graph icon indicating copy to clipboard operation
vscode-git-graph copied to clipboard

feature-request: third option for auto-generated commit message in git merge squash (`merge branch XXXX + list of all git commit logs`)

Open tresorama opened this issue 8 months ago • 0 comments

Thanks for the addition of https://github.com/mhutchie/vscode-git-graph/issues/331, I discovered it today even if it has been implemented in the past.
It is a great and useful feature.

I would like to suggest a new addition...

Current

If you set into Vs Code settings, git-graph.dialog.merge.squashMessageFormat to default... ...and git merge with squash you get a commit like this

Merge branch `XXX`

If you set into Vs Code settings, git-graph.dialog.merge.squashMessageFormat to Git SQUASH_MSG... ...and git merge with squash you get a commit like this

Squashed commit of the following:

commit f22c10d1d184be0374eb1cc7fdfbc383de1ae307
Author: Jacopo Marrone <[email protected]>
Date:   Fri May 2 16:21:25 2025 +0200

    chore: create env vars/constants `IS_DEVELOPMENT` `IS_PRODUCTION`

commit d6d73209ce441d4ac65466326400feef31d36cd1
Author: Jacopo Marrone <[email protected]>
Date:   Fri May 2 16:20:47 2025 +0200

    chore: frontend build preview is served on `5173` instead of `4173`

Suggested

A third option that combine the other two.

With this output:

Merge branch `XXX`

Squashed commit of the following:

commit f22c10d1d184be0374eb1cc7fdfbc383de1ae307
Author: Jacopo Marrone <[email protected]>
Date:   Fri May 2 16:21:25 2025 +0200

    chore: create env vars/constants `IS_DEVELOPMENT` `IS_PRODUCTION`

commit d6d73209ce441d4ac65466326400feef31d36cd1
Author: Jacopo Marrone <[email protected]>
Date:   Fri May 2 16:20:47 2025 +0200

    chore: frontend build preview is served on `5173` instead of `4173`

tresorama avatar May 02 '25 14:05 tresorama