From 954f6ce83192228471937d826547a0fd5b05201d Mon Sep 17 00:00:00 2001 From: Lenrui Date: Fri, 6 Nov 2026 22:47:02 -0800 Subject: [PATCH] set default on --- net.lenrui.git-auto-sync/CHANGELOG.md | 4 ++++ net.lenrui.git-auto-sync/Editor/GitAutoSync.cs | 2 +- net.lenrui.git-auto-sync/README.md | 2 +- net.lenrui.git-auto-sync/package.json | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/net.lenrui.git-auto-sync/CHANGELOG.md b/net.lenrui.git-auto-sync/CHANGELOG.md index 790510a..2930d49 100644 --- a/net.lenrui.git-auto-sync/CHANGELOG.md +++ b/net.lenrui.git-auto-sync/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.1.1] - 2026-11-06 + +- Ask Before Committing on Close is now on by default. + ## [1.1.0] - 2026-11-06 - When an HTTPS push is rejected as too large (HTTP 413), retry it over SSH, which can be on a different host. diff --git a/net.lenrui.git-auto-sync/Editor/GitAutoSync.cs b/net.lenrui.git-auto-sync/Editor/GitAutoSync.cs index f9cf742..c514dcb 100644 --- a/net.lenrui.git-auto-sync/Editor/GitAutoSync.cs +++ b/net.lenrui.git-auto-sync/Editor/GitAutoSync.cs @@ -46,7 +46,7 @@ namespace Lenrui.GitSync static bool AskBeforeCommit { - get { return EditorPrefs.GetBool(Key("AskBeforeCommit"), false); } + get { return EditorPrefs.GetBool(Key("AskBeforeCommit"), true); } set { EditorPrefs.SetBool(Key("AskBeforeCommit"), value); } } diff --git a/net.lenrui.git-auto-sync/README.md b/net.lenrui.git-auto-sync/README.md index 85c6a29..0144419 100644 --- a/net.lenrui.git-auto-sync/README.md +++ b/net.lenrui.git-auto-sync/README.md @@ -46,7 +46,7 @@ Only HTTP 413 triggers the fallback; other push failures are reported as usual. **Tools > Git Auto Sync** - **Enabled**: on by default. -- **Ask Before Committing on Close**: off by default, so closing commits and pushes without a prompt. +- **Ask Before Committing on Close**: on by default. Closing shows the changed files with **Commit and Push**, **Stay Open** or **Quit Without Committing**. Turn it off to commit and push without a prompt. - **Pull Latest Now** and **Commit and Push Now**: run either half by hand. - **Settings...**: opens Project Settings > Git Auto Sync. diff --git a/net.lenrui.git-auto-sync/package.json b/net.lenrui.git-auto-sync/package.json index 96158ce..f750e09 100644 --- a/net.lenrui.git-auto-sync/package.json +++ b/net.lenrui.git-auto-sync/package.json @@ -1,6 +1,6 @@ { "name": "net.lenrui.git-auto-sync", - "version": "1.1.0", + "version": "1.1.1", "displayName": "Git Auto Sync", "description": "Pulls the latest commits when the Unity Editor opens, and commits and pushes your changes when it closes. Falls back to SSH when an HTTPS push is too large (HTTP 413). Stops and asks instead of guessing when there's a conflict, no network, or a failed push.", "unity": "2019.4",