diff options
| author | 2026-04-17 10:53:36 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:53:36 +0100 | |
| commit | 118d166419760939d0784bed66efea7c42a16157 (patch) | |
| tree | 7a20993c2a439449f98ab3e56b23c03f80dba6cf /home | |
| parent | bb1870cf4c48519e736f9e3f4aecb6ac4c68037e (diff) | |
| download | dotfiles-118d166419760939d0784bed66efea7c42a16157.tar.gz dotfiles-118d166419760939d0784bed66efea7c42a16157.tar.bz2 dotfiles-118d166419760939d0784bed66efea7c42a16157.zip | |
refactor: improve safety of autocorrect and remove undo alias
- Change help.autocorrect from 1 (0.1s auto-execute) to 'prompt'
(asks before executing the guessed command). Prevents accidental
execution of wrong commands.
- Remove 'undo = reset --hard' alias — destructive with no
confirmation, could silently discard uncommitted work.
Diffstat (limited to 'home')
| -rw-r--r-- | home/.config/git/config | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/home/.config/git/config b/home/.config/git/config index 226e8a0..bba5ed3 100644 --- a/home/.config/git/config +++ b/home/.config/git/config @@ -59,7 +59,7 @@ showStash = true submoduleSummary = true [help] - autocorrect = 1 + autocorrect = prompt [log] abbrevCommit = true date = short @@ -121,12 +121,13 @@ sw = switch swc = switch -c swd = switch -d - undo = reset --hard unstage = reset HEAD -- update=!git fetch && git merge --ff-only [includeIf "gitdir:/home/*/work/"] path = config-work [includeIf "gitdir:~/doxfiles/.git"] path = config-personal -[includeIf "gitdir:~/personal/"] +[includeIf "gitdir:~/dev/copilot/.git"] + path = config-personal +[includeIf "gitdir:~/dev/personal/"] path = config-personal |
