summaryrefslogtreecommitdiff
path: root/contrib/vscode
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2018-07-30 15:42:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-07-30 20:14:39 (GMT)
commitf2a3b6839477fe623edb0d2113a58acac8821596 (patch)
tree1c32a855fa62f42672eb70c7ba219860c951179f /contrib/vscode
parent0f47f78e02d16e6edd0448285815ccc1744294e8 (diff)
downloadgit-f2a3b6839477fe623edb0d2113a58acac8821596.zip
git-f2a3b6839477fe623edb0d2113a58acac8821596.tar.gz
git-f2a3b6839477fe623edb0d2113a58acac8821596.tar.bz2
vscode: wrap commit messages at column 72 by default
When configuring VS Code as core.editor (via `code --wait`), we really want to adhere to the Git conventions of wrapping commit messages. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/vscode')
-rwxr-xr-xcontrib/vscode/init.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
index ba94692..face115 100755
--- a/contrib/vscode/init.sh
+++ b/contrib/vscode/init.sh
@@ -17,6 +17,10 @@ cat >.vscode/settings.json.new <<\EOF ||
{
"C_Cpp.intelliSenseEngine": "Default",
"C_Cpp.intelliSenseEngineFallback": "Disabled",
+ "[git-commit]": {
+ "editor.wordWrap": "wordWrapColumn",
+ "editor.wordWrapColumn": 72
+ },
"files.associations": {
"*.h": "c",
"*.c": "c"