summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2024-11-27 18:56:53 +0000
committerTyler Davis <tyler@gluecode.net>2024-11-27 18:56:53 +0000
commit2b0abcf1e5e6a9d59d0e1dd938ee9b273daa7062 (patch)
tree09f5c6bab8bde047052e58853a2df27a6ec919b2 /.local
parent3703779248f4ddeefa5bb0e24e450a1413db400f (diff)
downloaddotfiles-2b0abcf1e5e6a9d59d0e1dd938ee9b273daa7062.tar.gz
dotfiles-2b0abcf1e5e6a9d59d0e1dd938ee9b273daa7062.zip
too many updates to comment
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/confgit.sh15
-rwxr-xr-x.local/bin/update_bsd.sh8
-rw-r--r--.local/share/git/repolist1
3 files changed, 20 insertions, 4 deletions
diff --git a/.local/bin/confgit.sh b/.local/bin/confgit.sh
index 813f97b..e7d2e82 100755
--- a/.local/bin/confgit.sh
+++ b/.local/bin/confgit.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env sh
+VER="$(git version |cut -d " " -f 3)"
+
# Portably get number of procs
OS="$(uname -s)"
NPROCS=""
@@ -60,6 +62,14 @@ git config --global index.recordEndOfIndexEntries true
git config --global index.recordOffsetTable true
git config --global log.date iso
git config --global merge.conflictstyle zdiff3
+if [ "${VER}" \> "2.45" ]; then
+ git config --global pack.allowPackReuse multi # Experimental
+ git config --global index.skipHash true # Experimental, will fail earlier than 2.40
+ git config --global index.version 4
+ git config --global fetch.negotiationAlgorithm skipping # Experimental
+ # Additional experimental configs
+ git config --global feature.manyFiles true
+fi
git config --global pack.threads "$NPROCS" # Auto-detect threads from CPU
git config --global pack.useBitmapBoundaryTraversal true
git config --global pack.writeReverseIndex true
@@ -78,6 +88,11 @@ git config --global tag.sort taggerdate
git config --global user.email tyler@gluecode.net
git config --global user.name "Tyler Davis"
+if [ "${VER}" \> "2.47" ]; then
+ # Only enable reftable by default on git 2.47+
+ git config --global init.defaultRefFormat reftable
+fi
+
# Eagerly detect errors
git config --global transfer.fsckobjects true
git config --global fetch.fsckobjects true
diff --git a/.local/bin/update_bsd.sh b/.local/bin/update_bsd.sh
index 6d879a8..7cbb608 100755
--- a/.local/bin/update_bsd.sh
+++ b/.local/bin/update_bsd.sh
@@ -21,8 +21,8 @@ cvs update -dP -r netbsd-10 ;
cd /usr/src ;
cvs update -dP -r netbsd-10 ;
-# Not sure if this will build X as well
-#/usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -x -X /usr/xsrc -U -u distribution kernel=GENERIC ;
+# Build with Xsrc
+/usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -x -X /usr/xsrc -U -u -P distribution kernel=GENERIC ;
-cd /usr/src ;
-/usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -U -u distribution kernel=GENERIC ;
+# Build without X
+#/usr/src/build.sh -j $(sysctl -n hw.ncpu) -c clang -O /usr/obj/ -T /usr/tools/ -U -u -P distribution kernel=GENERIC ;
diff --git a/.local/share/git/repolist b/.local/share/git/repolist
index 415eeea..b9f2329 100644
--- a/.local/share/git/repolist
+++ b/.local/share/git/repolist
@@ -1,5 +1,6 @@
cs631apue,origin=git@github.com:jschauma/cs631apue.git
dark-mode-notify,origin=https://github.com/bouk/dark-mode-notify.git
+gotosocial,origin=https://github.com/superseriousbusiness/gotosocial.git
hut,origin=https://git.sr.ht/~xenrox/hut
journal,origin=git@git.sr.ht:~tydavis/journal
resume,origin=git@git.sr.ht:~tydavis/resume