From 0dbd277c2ffbe331848e55745185ebe0d47bd3dc Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Wed, 25 Jun 2025 19:34:14 +0300 Subject: [PATCH] Tweak git-sync behaviour in .gitconfig instead of the CLI --- .gitconfig | 4 ++++ .local/bin/sync-git-repos | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitconfig b/.gitconfig index 1aaaa5d..e0d1e54 100644 --- a/.gitconfig +++ b/.gitconfig @@ -10,6 +10,10 @@ [remote] pushDefault = . [git-sync] + # keep-sorted start + syncEnabled = true + syncNewFiles = true syncSkipHooks = true + # keep-sorted end [include] path = .hostgitconfig diff --git a/.local/bin/sync-git-repos b/.local/bin/sync-git-repos index 92d7258..d1fce9e 100755 --- a/.local/bin/sync-git-repos +++ b/.local/bin/sync-git-repos @@ -12,7 +12,7 @@ sync_repo () { repo=$1 echo git-sync "${repo}" - ( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync -n -s sync ) + ( cd "${repo}" && "$(systemd-path user-state-private)"/git-sync/git-sync sync ) echo }