Improve git workflow: enable fsmonitor and untrackedCache, add watchman,

improve some git aliases
This commit is contained in:
Martin Larsson 2025-07-15 12:20:53 +02:00
parent 48ed428fd6
commit 25d56990cd
3 changed files with 13 additions and 2 deletions

View file

@ -5,6 +5,8 @@
compression = 9
whitespace = error
preloadindex = true
fsmonitor = true
untrackedCache = true
[status]
branch = true
@ -38,6 +40,10 @@
[rebase]
autoStash = true
missingCommitsCheck = true
autosquash = true
[merge]
ff = false
[log]
abbrevCommit = true

View file

@ -129,6 +129,7 @@ in
rainfrog
atac
p7zip
watchman
];
file = utils.mk_symlinks { inherit config dotfiles; };

View file

@ -135,11 +135,12 @@ alias gsu="git submodule update --init --recursive --force"
alias gc="git commit --verbose --template=$HOME/.config/git/commit-template.txt"
alias gp="git push"
alias gu="git pull"
alias gf="git fetch"
alias gsw="git switch"
alias gswc="git switch --create"
alias gb="git branch"
alias gr="git restore --staged"
alias gre="git restore"
alias grs="git restore --staged" # git restore staged
alias grw="git restore" # git restore working
alias ga="git add"
alias gap="git add --patch"
alias gi="git init"
@ -148,6 +149,9 @@ alias gd="git diff --output-indicator-new=' ' --output-indicator-old=' '"
alias gds="git diff --staged --output-indicator-new=' ' --output-indicator-old=' '"
alias gl="git log --all --graph --pretty=format:'%C(magenta)%h %C(white) %an %ar%C(auto) %D%n%s%n'"
alias gm="git merge"
alias gr="git rebase"
alias grc="git rebase --continue"
alias gri="git rebase --interactive"
# Alias functions
vif() {