From 4f7479490efa8dc53f07eee2b217389adaf7da4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 12 Oct 2024 19:30:44 +0200 Subject: [PATCH] feat(envrc): fetch repo on enter Should help me not to work on an outdated commit, thankfully jj makes it trivial to rebase. --- .envrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.envrc b/.envrc index 3550a30..5849ead 100644 --- a/.envrc +++ b/.envrc @@ -1 +1,10 @@ +# update repo +if has jj; then + jj git fetch +elif has gix; then + gix fetch +elif has git; then + git fetch +fi + use flake