From 58fb1cf3d3bd219b161f01512b83bcc2ea9b8ea2 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 10 Sep 2025 16:35:43 +0100 Subject: [PATCH 1/2] Remove worktree stuff, for now. --- README.md | 8 -------- worktrees | 9 --------- 2 files changed, 17 deletions(-) delete mode 100755 worktrees diff --git a/README.md b/README.md index 127f390..0dbacfc 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,3 @@ List available branches: Check out specific branch: * git checkout - - -WORKTREES -========= -Instead of checking out individual branches into the worktree, it is possible to checkout multiple branches into sub-directories to work on concurrently. - -The set up script 'worktrees' in the "master" branch will create the necessary structure and add the worktrees. -This script should only be run once per clone's "master" worktree. diff --git a/worktrees b/worktrees deleted file mode 100755 index c5cfed4..0000000 --- a/worktrees +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# Set up the structure to use worktrees in this clone. - -BRANCHES=("core") - -for BRANCH in "${BRANCHES[@]"; do - mkdir -p "$BRANCH" - git worktree add "./$BRANCH" "origin/$BRANCH" -done From 465c1d121b033fd70b8cb0b5187c28de47cb8065 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 10 Sep 2025 16:41:05 +0100 Subject: [PATCH 2/2] Added .gitmodules file, and .githooks/ directory as the git hooks directory. --- .gitattributesdb | 9 +++++++++ .githooks/gitattributesdb | 1 + .githooks/post-checkout | 4 ++++ .githooks/post-merge | 4 ++++ .githooks/pre-commit | 4 ++++ .gitmodules | 3 +++ 6 files changed, 25 insertions(+) create mode 100644 .gitattributesdb create mode 160000 .githooks/gitattributesdb create mode 100755 .githooks/post-checkout create mode 100755 .githooks/post-merge create mode 100755 .githooks/pre-commit create mode 100644 .gitmodules diff --git a/.gitattributesdb b/.gitattributesdb new file mode 100644 index 0000000..fed81d0 --- /dev/null +++ b/.gitattributesdb @@ -0,0 +1,9 @@ +# This is the gitattributesdb database file. +# Do not manually edit this file - any changes will be overwritten. + +LmdpdGhvb2tzL2dpdGF0dHJpYnV0ZXNkYg== 1757518619.432797732 1757518618.466836488 tadgy:users 0755 - - +LmdpdGhvb2tzL3Bvc3QtY2hlY2tvdXQ= 1757518719.301790744 1757518850.675522371 tadgy:users 0755 - - +LmdpdGhvb2tzL3Bvc3QtbWVyZ2U= 1757518766.485897550 1757518850.675522371 tadgy:users 0755 - - +LmdpdGhvb2tzL3ByZS1jb21taXQ= 1757518781.005315169 1757518850.675522371 tadgy:users 0755 - - +LmdpdG1vZHVsZXM= 1757518619.436797572 1757518619.438797492 tadgy:users 0644 - - +UkVBRE1FLm1k 1757518519.971788195 1757518530.954347573 tadgy:users 0644 - - diff --git a/.githooks/gitattributesdb b/.githooks/gitattributesdb new file mode 160000 index 0000000..aa17af4 --- /dev/null +++ b/.githooks/gitattributesdb @@ -0,0 +1 @@ +Subproject commit aa17af467452849b2204472c8c16d9d3757824af diff --git a/.githooks/post-checkout b/.githooks/post-checkout new file mode 100755 index 0000000..6db7cb0 --- /dev/null +++ b/.githooks/post-checkout @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Store/restore the attributes of files: +.githooks/gitattributesdb/gitattributesdb "${0##*/}" || exit $? diff --git a/.githooks/post-merge b/.githooks/post-merge new file mode 100755 index 0000000..6db7cb0 --- /dev/null +++ b/.githooks/post-merge @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Store/restore the attributes of files: +.githooks/gitattributesdb/gitattributesdb "${0##*/}" || exit $? diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..6db7cb0 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Store/restore the attributes of files: +.githooks/gitattributesdb/gitattributesdb "${0##*/}" || exit $? diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f60f0b0 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule ".githooks/gitattributesdb"] + path = .githooks/gitattributesdb + url = https://github.com/tadgy/gitattributesdb.git