Compare commits
73 commits
f57c893f53
...
08611fe453
Author | SHA1 | Date | |
---|---|---|---|
![]() |
08611fe453 | ||
![]() |
54ec3c6858 | ||
![]() |
16f1fcd7a7 | ||
![]() |
a747e07771 | ||
![]() |
930339a93f | ||
![]() |
5c5ba832e3 | ||
![]() |
6aa94ae042 | ||
![]() |
da10fb00b3 | ||
![]() |
d26c83b667 | ||
![]() |
5873a18e98 | ||
![]() |
6a8e01afb1 | ||
![]() |
8af49da40c | ||
![]() |
6ebb7ad18b | ||
![]() |
5b45a969c0 | ||
![]() |
22b12543f0 | ||
![]() |
1b7be31d26 | ||
![]() |
8d47512f04 | ||
![]() |
0195580079 | ||
![]() |
1fc593cd4f | ||
![]() |
e6b597de8f | ||
![]() |
f21bf486f9 | ||
![]() |
36784e3c94 | ||
![]() |
adaf67bb86 | ||
![]() |
4b98dc3e16 | ||
![]() |
d00cc5298d | ||
![]() |
bd1fff61fe | ||
![]() |
f3c9dda49a | ||
![]() |
dfdd67a4b6 | ||
![]() |
3dc823e566 | ||
![]() |
d63c638957 | ||
![]() |
4138561241 | ||
![]() |
e6165ea7b0 | ||
![]() |
86a4eb65d3 | ||
![]() |
ebd1c7a5c9 | ||
![]() |
d449e8dd5e | ||
![]() |
e7fa51137e | ||
![]() |
b75d40774c | ||
![]() |
2a88e9e374 | ||
![]() |
b05e5f3de0 | ||
![]() |
2a04adffca | ||
![]() |
98684fc436 | ||
![]() |
852271ad01 | ||
![]() |
8e2b392afa | ||
![]() |
b5c9bebd96 | ||
![]() |
a091f20454 | ||
![]() |
b60f4f5946 | ||
![]() |
329eafef42 | ||
![]() |
af2bb3e547 | ||
![]() |
7bd628a0d6 | ||
![]() |
d652c62d77 | ||
![]() |
3cb7801d35 | ||
![]() |
2f76e2be4e | ||
![]() |
d1bf7e6ea4 | ||
![]() |
49cc6d8717 | ||
![]() |
a61491d8eb | ||
![]() |
77b31f2965 | ||
![]() |
e8c1b291dd | ||
![]() |
4d714718b0 | ||
![]() |
4d6afeaf30 | ||
![]() |
244d675b03 | ||
![]() |
8f02276ad7 | ||
![]() |
4b490f68cc | ||
![]() |
36b808be89 | ||
![]() |
213672847b | ||
![]() |
0a618225cf | ||
![]() |
ac462e06eb | ||
![]() |
9a25641f4b | ||
![]() |
fc7f0fd696 | ||
![]() |
8bbc1c2cdd | ||
![]() |
bcecceb6fb | ||
![]() |
38bfa138c3 | ||
![]() |
4b323cbd7d | ||
![]() |
b2584503af |
12 changed files with 206 additions and 45 deletions
|
@ -1 +1 @@
|
|||
8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4
|
||||
a747e077717e7862a8742d77a0872dd619d9560d
|
||||
|
|
|
@ -71,7 +71,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 22 hours, 22 minutes`
|
||||
- **System Uptime**: `up 23 hours, 34 minutes`
|
||||
|
||||
---
|
||||
|
||||
|
|
|
@ -6,25 +6,25 @@
|
|||
- **Local Repo Path**: `/mnt/c/Downloads/git-sigil`
|
||||
- **Remote Label**: `github`
|
||||
- **Default Branch**: `master`
|
||||
- **This Commit Date**: `2025-06-07 00:20:54`
|
||||
- **This Commit Date**: `2025-06-07 01:26:22`
|
||||
|
||||
---
|
||||
|
||||
## 📦 Commit Info
|
||||
|
||||
- **This Commit Timestamp**: `2025-06-07 00:20:54`
|
||||
- **Last Commit SHA**: `231eee68616d3394d349c3cc982608617297caaa`
|
||||
- **Last Commit Message**: `Local metadata link commit at 2025-06-07 00:18:57 — file:///home/mrhavens/git-local-repos/git-sigil.git`
|
||||
- **This Commit Timestamp**: `2025-06-07 01:26:22`
|
||||
- **Last Commit SHA**: `5873a18e9882a3815f4bb39a21bac9f6f2eebe43`
|
||||
- **Last Commit Message**: `Post-Bitbucket sync at 2025-06-07 01:18:36`
|
||||
- **Last Commit Author**: `Mark Randall Havens <mark.r.havens@gmail.com>`
|
||||
- **Last Commit Date**: `Sat Jun 7 00:19:01 2025 -0500`
|
||||
- **This Commit URL**: [https://github.com/mrhavens/git-sigil/commit/231eee68616d3394d349c3cc982608617297caaa](https://github.com/mrhavens/git-sigil/commit/231eee68616d3394d349c3cc982608617297caaa)
|
||||
- **Last Commit Date**: `Sat Jun 7 01:26:10 2025 -0500`
|
||||
- **This Commit URL**: [https://github.com/mrhavens/git-sigil/commit/5873a18e9882a3815f4bb39a21bac9f6f2eebe43](https://github.com/mrhavens/git-sigil/commit/5873a18e9882a3815f4bb39a21bac9f6f2eebe43)
|
||||
|
||||
---
|
||||
|
||||
## 📊 Repo Status
|
||||
|
||||
- **Total Commits**: `789`
|
||||
- **Tracked Files**: `113`
|
||||
- **Total Commits**: `859`
|
||||
- **Tracked Files**: `115`
|
||||
- **Uncommitted Changes**: `Yes`
|
||||
- **Latest Tag**: `None`
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 22 hours, 28 minutes`
|
||||
- **System Uptime**: `up 23 hours, 34 minutes`
|
||||
- **MAC Address**: `00:15:5d:86:d8:cc`
|
||||
- **Local IP**: `172.18.207.124`
|
||||
- **CPU Model**: `AMD A6-3420M APU with Radeon(tm) HD Graphics`
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 22 hours, 22 minutes`
|
||||
- **System Uptime**: `up 23 hours, 33 minutes`
|
||||
- **MAC Address**: `00:15:5d:86:d8:cc`
|
||||
- **Local IP**: `172.18.207.124`
|
||||
- **CPU Model**: `AMD A6-3420M APU with Radeon(tm) HD Graphics`
|
||||
|
|
43
.gitfield/last_resolution.log
Normal file
43
.gitfield/last_resolution.log
Normal file
|
@ -0,0 +1,43 @@
|
|||
🛠️ [GITFIELD] Beginning auto-resolution ritual...
|
||||
✅ No changes to commit.
|
||||
🔍 Checking bitbucket for divergence...
|
||||
From bitbucket.org:thefoldwithin/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
✅ bitbucket is already in sync.
|
||||
🔍 Checking github for divergence...
|
||||
From github.com:mrhavens/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
⚠️ Divergence with github. Attempting merge...
|
||||
From github.com:mrhavens/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
Already up to date.
|
||||
✅ No changes to commit.
|
||||
To github.com:mrhavens/git-sigil.git
|
||||
! [rejected] master -> master (non-fast-forward)
|
||||
error: failed to push some refs to 'github.com:mrhavens/git-sigil.git'
|
||||
hint: Updates were rejected because a pushed branch tip is behind its remote
|
||||
hint: counterpart. If you want to integrate the remote changes, use 'git pull'
|
||||
hint: before pushing again.
|
||||
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
|
||||
⚠️ Final push failed to github
|
||||
🔍 Checking gitlab for divergence...
|
||||
From gitlab.com:mrhavens/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
✅ gitlab is already in sync.
|
||||
🔍 Checking local for divergence...
|
||||
From file:///home/mrhavens/git-local-repos/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
✅ local is already in sync.
|
||||
🔍 Checking origin for divergence...
|
||||
From ssh://remember.thefoldwithin.earth/mrhavens/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
✅ origin is already in sync.
|
||||
🔍 Checking remember for divergence...
|
||||
From remember.thefoldwithin.earth:mrhavens/git-sigil
|
||||
* branch master -> FETCH_HEAD
|
||||
✅ remember is already in sync.
|
||||
🧙 Final override: Forcing sync to GitHub...
|
||||
To github.com:mrhavens/git-sigil.git
|
||||
+ 4b323cb...f57c893 master -> master (forced update)
|
||||
✅ GitHub forcibly realigned with local truth.
|
||||
✅ GitField resolution ritual complete.
|
|
@ -6,26 +6,26 @@
|
|||
- **Local Repo Path**: `/mnt/c/Downloads/git-sigil`
|
||||
- **Remote Label**: `local`
|
||||
- **Default Branch**: `master`
|
||||
- **Repo Created**: `2025-06-07 00:18:57`
|
||||
- **Repo Created**: `2025-06-07 01:33:39`
|
||||
|
||||
---
|
||||
|
||||
## 📦 Commit Info
|
||||
|
||||
- **This Commit Timestamp**: `2025-06-07 00:18:57`
|
||||
- **Last Commit SHA**: `4467ce03add4752ee46b5f27dc66929f8e53c509`
|
||||
- **Last Commit Message**: `Post-GitHub sync at 2025-06-07 00:07:23`
|
||||
- **This Commit Timestamp**: `2025-06-07 01:33:39`
|
||||
- **Last Commit SHA**: `5c5ba832e3dd3be3e1ec38fdd6cc3bdc555a0f11`
|
||||
- **Last Commit Message**: `Merge branch 'master' of bitbucket.org:thefoldwithin/git-sigil`
|
||||
- **Last Commit Author**: `Mark Randall Havens <mark.r.havens@gmail.com>`
|
||||
- **Last Commit Date**: `Sat Jun 7 00:15:44 2025 -0500`
|
||||
- **Last Commit Date**: `Sat Jun 7 01:27:40 2025 -0500`
|
||||
- **This Commit URL**: `file:///home/mrhavens/git-local-repos/git-sigil.git`
|
||||
|
||||
---
|
||||
|
||||
## 📊 Repo Status
|
||||
|
||||
- **Total Commits**: `788`
|
||||
- **Tracked Files**: `113`
|
||||
- **Uncommitted Changes**: `Yes`
|
||||
- **Total Commits**: `864`
|
||||
- **Tracked Files**: `115`
|
||||
- **Uncommitted Changes**: `No`
|
||||
- **Latest Tag**: `None`
|
||||
|
||||
---
|
||||
|
@ -48,7 +48,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 22 hours, 26 minutes`
|
||||
- **System Uptime**: `up 23 hours, 41 minutes`
|
||||
- **MAC Address**: `00:15:5d:86:d8:cc`
|
||||
- **Local IP**: `172.18.207.124`
|
||||
- **CPU Model**: `AMD A6-3420M APU with Radeon(tm) HD Graphics`
|
||||
|
|
|
@ -122,6 +122,48 @@
|
|||
"branch": "master",
|
||||
"commit": "4467ce03add4752ee46b5f27dc66929f8e53c509",
|
||||
"message": "Post-GitHub sync at 2025-06-07 00:07:23"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 00:42:50",
|
||||
"branch": "Unknown",
|
||||
"commit": "38bfa138c36b5afb09001a81d1df873ee7732eb8",
|
||||
"message": "🔀 Merge: resolved conflicts with github master"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 00:44:12",
|
||||
"branch": "Unknown",
|
||||
"commit": "4b490f68ccee394e66dde9253a7d4fe5448c2bb8",
|
||||
"message": "Generated GITFIELD.md at 2025-06-07 00:42:50"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 00:45:26",
|
||||
"branch": "Unknown",
|
||||
"commit": "49cc6d871738f84198590c372c1beda26ed1c889",
|
||||
"message": "Post-GitHub sync at 2025-06-07 00:42:50"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 01:18:38",
|
||||
"branch": "master",
|
||||
"commit": "a091f204544eaf8b5b0bb5cddf8be02728ef54a2",
|
||||
"message": "🔄 Auto-resolve commit from gitfield-resolve.sh"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 01:22:31",
|
||||
"branch": "master",
|
||||
"commit": "e6165ea7b01fa5a50adad73fef518c5a253be79a",
|
||||
"message": "Generated GITFIELD.md at 2025-06-07 01:18:36"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 01:24:29",
|
||||
"branch": "master",
|
||||
"commit": "e6b597de8fab6528295f18eb0f16f212193e7996",
|
||||
"message": "Post-GitHub sync at 2025-06-07 01:18:36"
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-06-07 01:33:39",
|
||||
"branch": "master",
|
||||
"commit": "5c5ba832e3dd3be3e1ec38fdd6cc3bdc555a0f11",
|
||||
"message": "Merge branch 'master' of bitbucket.org:thefoldwithin/git-sigil"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -140,3 +140,7 @@
|
|||
[2025-06-06 12:25:42] Forgejo: https://remember.thefoldwithin.earth/mrhavens/git-sigil
|
||||
[2025-06-06 12:25:55] GitLab: https://gitlab.com/mrhavens/git-sigil
|
||||
>>>>>>> be7726405b6412ae5af5144f9e2cf4d13bd32aeb
|
||||
[2025-06-07 01:33:59] Local:
|
||||
[2025-06-07 01:34:19] Radicle: RID=rad:z3FEj7rF8gZw9eFksCuiN43qjzrex, Peer ID=z6Mkw5s3ppo26C7y7tGK5MD8n2GqTHS582PPpeX5Xqbu2Mpz
|
||||
CLI: rad inspect rad:z3FEj7rF8gZw9eFksCuiN43qjzrex # View project details
|
||||
CLI: git ls-tree -r --name-only HEAD # View file structure
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
# 🔗 Radicle Repository Link
|
||||
|
||||
- **Project Name**: `git-sigil`
|
||||
- **Radicle URN**: `rad://z3FEj7rF8gZw9eFksCuiN43qjzrex`
|
||||
- **Public Gateway**: [https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z3FEj7rF8gZw9eFksCuiN43qjzrex/tree/8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4](https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z3FEj7rF8gZw9eFksCuiN43qjzrex/tree/8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4)
|
||||
- **Local Repo Path**: `/home/mrhavens/tmpwork/git-sigil`
|
||||
- **Radicle URN**: `rad://z25YEyUuiew3Nv7yCyAkaQznFuzA2`
|
||||
- **Public Gateway**: [https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z25YEyUuiew3Nv7yCyAkaQznFuzA2/tree/a747e077717e7862a8742d77a0872dd619d9560d](https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z25YEyUuiew3Nv7yCyAkaQznFuzA2/tree/a747e077717e7862a8742d77a0872dd619d9560d)
|
||||
- **Local Repo Path**: `/mnt/c/Downloads/git-sigil`
|
||||
- **Default Branch**: `master`
|
||||
- **Repo Created**: `2025-06-06 12:25:35`
|
||||
- **Repo Created**: `2025-06-07 01:34:11`
|
||||
|
||||
---
|
||||
|
||||
## 📦 Commit Info
|
||||
|
||||
- **This Commit Timestamp**: `2025-06-06 12:25:35`
|
||||
- **Last Commit SHA**: `8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4`
|
||||
- **Last Commit Message**: `Post-Local sync at 2025-06-06 12:19:09`
|
||||
- **This Commit Timestamp**: `2025-06-07 01:34:11`
|
||||
- **Last Commit SHA**: `a747e077717e7862a8742d77a0872dd619d9560d`
|
||||
- **Last Commit Message**: `Post-Local sync at 2025-06-07 01:33:38`
|
||||
- **Commit Author**: `Mark Randall Havens <mark.r.havens@gmail.com>`
|
||||
- **Commit Date**: `Fri Jun 6 12:25:33 2025 -0500`
|
||||
- **This Commit URL**: [https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z3FEj7rF8gZw9eFksCuiN43qjzrex/tree/8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4](https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z3FEj7rF8gZw9eFksCuiN43qjzrex/tree/8302ba3ccd61a4aeb76064d3bfc94114c7d31cc4)
|
||||
- **Commit Date**: `Sat Jun 7 01:34:02 2025 -0500`
|
||||
- **This Commit URL**: [https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z25YEyUuiew3Nv7yCyAkaQznFuzA2/tree/a747e077717e7862a8742d77a0872dd619d9560d](https://app.radicle.xyz/nodes/ash.radicle.garden/rad:z25YEyUuiew3Nv7yCyAkaQznFuzA2/tree/a747e077717e7862a8742d77a0872dd619d9560d)
|
||||
|
||||
---
|
||||
|
||||
## 📊 Repo Status
|
||||
|
||||
- **Total Commits**: `750`
|
||||
- **Tracked Files**: `81`
|
||||
- **Total Commits**: `866`
|
||||
- **Tracked Files**: `115`
|
||||
- **Uncommitted Changes**: `Yes`
|
||||
- **Latest Tag**: `None`
|
||||
|
||||
|
@ -47,7 +47,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 11 hours, 9 minutes`
|
||||
- **System Uptime**: `up 23 hours, 42 minutes`
|
||||
- **MAC Address**: `00:15:5d:86:d8:cc`
|
||||
- **Local IP**: `172.18.207.124`
|
||||
- **CPU Model**: `AMD A6-3420M APU with Radeon(tm) HD Graphics`
|
||||
|
@ -57,7 +57,7 @@
|
|||
|
||||
## 🌱 Radicle-Specific Metadata
|
||||
|
||||
- **Project ID**: `z3FEj7rF8gZw9eFksCuiN43qjzrex`
|
||||
- **Project ID**: `z25YEyUuiew3Nv7yCyAkaQznFuzA2`
|
||||
- **Peer ID**: `z6Mkw5s3ppo26C7y7tGK5MD8n2GqTHS582PPpeX5Xqbu2Mpz
|
||||
z6Mkw5s3ppo26C7y7tGK5MD8n2GqTHS582PPpeX5Xqbu2Mpz`
|
||||
- **Public Gateway Base**: `https://app.radicle.xyz/nodes/ash.radicle.garden`
|
||||
|
|
|
@ -6,26 +6,26 @@
|
|||
- **Local Repo Path**: `/mnt/c/Downloads/git-sigil`
|
||||
- **Remote Label**: `remember`
|
||||
- **Default Branch**: `master`
|
||||
- **Repo Created**: `2025-06-07 00:14:26`
|
||||
- **Repo Created**: `2025-06-07 01:34:25`
|
||||
|
||||
---
|
||||
|
||||
## 📦 Commit Info
|
||||
|
||||
- **This Commit Timestamp**: `2025-06-07 00:14:26`
|
||||
- **Last Commit SHA**: `73366f36141d7d788d9477cd18f888f99bd44037`
|
||||
- **Last Commit Message**: `Post-Radicle sync at 2025-06-07 00:07:23`
|
||||
- **This Commit Timestamp**: `2025-06-07 01:34:25`
|
||||
- **Last Commit SHA**: `54ec3c68583ea4a44536d3969d9a39ba4d7bdbea`
|
||||
- **Last Commit Message**: `Post-Radicle sync at 2025-06-07 01:33:38`
|
||||
- **Last Commit Author**: `Mark Randall Havens <mark.r.havens@gmail.com>`
|
||||
- **Last Commit Date**: `Sat Jun 7 00:14:23 2025 -0500`
|
||||
- **This Commit URL**: [https://remember.thefoldwithin.earth/mrhavens/git-sigil/commit/73366f36141d7d788d9477cd18f888f99bd44037](https://remember.thefoldwithin.earth/mrhavens/git-sigil/commit/73366f36141d7d788d9477cd18f888f99bd44037)
|
||||
- **Last Commit Date**: `Sat Jun 7 01:34:22 2025 -0500`
|
||||
- **This Commit URL**: [https://remember.thefoldwithin.earth/mrhavens/git-sigil/commit/54ec3c68583ea4a44536d3969d9a39ba4d7bdbea](https://remember.thefoldwithin.earth/mrhavens/git-sigil/commit/54ec3c68583ea4a44536d3969d9a39ba4d7bdbea)
|
||||
|
||||
---
|
||||
|
||||
## 📊 Repo Status
|
||||
|
||||
- **Total Commits**: `780`
|
||||
- **Tracked Files**: `113`
|
||||
- **Uncommitted Changes**: `Yes`
|
||||
- **Total Commits**: `868`
|
||||
- **Tracked Files**: `115`
|
||||
- **Uncommitted Changes**: `No`
|
||||
- **Latest Tag**: `None`
|
||||
|
||||
---
|
||||
|
@ -48,7 +48,7 @@
|
|||
- **Running in Docker**: `No`
|
||||
- **Running in WSL**: `Yes`
|
||||
- **Virtual Machine**: `wsl`
|
||||
- **System Uptime**: `up 22 hours, 22 minutes`
|
||||
- **System Uptime**: `up 23 hours, 42 minutes`
|
||||
- **MAC Address**: `00:15:5d:86:d8:cc`
|
||||
- **Local IP**: `172.18.207.124`
|
||||
- **CPU Model**: `AMD A6-3420M APU with Radeon(tm) HD Graphics`
|
||||
|
|
|
@ -76,4 +76,4 @@ This multi-repository approach, bolstered by Forgejo’s sovereign hosting, refl
|
|||
|
||||
---
|
||||
|
||||
_Auto-generated by `gitfield-sync` at 2025-06-07 00:07:23 (v1.0)._
|
||||
_Auto-generated by `gitfield-sync` at 2025-06-07 01:18:36 (v1.0)._
|
||||
|
|
72
bin/gitfield-resolve.sh
Normal file
72
bin/gitfield-resolve.sh
Normal file
|
@ -0,0 +1,72 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "🛠️ [GITFIELD] Beginning auto-resolution ritual..."
|
||||
|
||||
# Ensure we’re in a Git repo
|
||||
if ! git rev-parse --git-dir > /dev/null 2>&1; then
|
||||
echo "❌ Not a Git repository. Aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Ensure at least one commit exists
|
||||
if ! git log > /dev/null 2>&1; then
|
||||
echo "🌀 No commits found. Creating seed commit..."
|
||||
git add .
|
||||
git commit --allow-empty -m "🌱 Seed commit for Radicle and GitField rituals"
|
||||
fi
|
||||
|
||||
# GPG sign commit if enabled
|
||||
GPG_KEY=$(git config user.signingkey)
|
||||
if [ -n "$GPG_KEY" ]; then
|
||||
echo "🔏 GPG commit signing enabled with key: $GPG_KEY"
|
||||
git commit -S --allow-empty -m "🔐 Ritual signed commit [auto]"
|
||||
fi
|
||||
|
||||
# Stage and commit any local changes
|
||||
if ! git diff --quiet || ! git diff --cached --quiet; then
|
||||
git add .
|
||||
git commit -m "🔄 Auto-resolve commit from gitfield-resolve.sh"
|
||||
echo "✅ Local changes committed."
|
||||
else
|
||||
echo "✅ No changes to commit."
|
||||
fi
|
||||
|
||||
# Loop through remotes
|
||||
remotes=$(git remote)
|
||||
for remote in $remotes; do
|
||||
echo "🔍 Checking $remote for divergence..."
|
||||
git fetch $remote
|
||||
if git merge-base --is-ancestor $remote/master master; then
|
||||
echo "✅ $remote is already in sync."
|
||||
else
|
||||
echo "⚠️ Divergence with $remote. Attempting merge..."
|
||||
git pull --no-rebase $remote master --strategy-option=theirs --allow-unrelated-histories
|
||||
git push $remote master || echo "⚠️ Final push failed to $remote"
|
||||
fi
|
||||
done
|
||||
|
||||
# ==== RADICLE SECTION ====
|
||||
|
||||
echo "🌱 [RADICLE] Verifying Radicle status..."
|
||||
|
||||
# Check if Radicle is initialized
|
||||
if ! rad inspect > /dev/null 2>&1; then
|
||||
echo "🌿 No Radicle project detected. Attempting init..."
|
||||
RAD_INIT_OUTPUT=$(rad init --name git-sigil --description "GitField Ritual Repo")
|
||||
echo "$RAD_INIT_OUTPUT"
|
||||
fi
|
||||
|
||||
# Push to Radicle and announce
|
||||
echo "📡 Announcing to Radicle network..."
|
||||
rad push --announce
|
||||
|
||||
# Get project ID
|
||||
PROJECT_ID=$(rad inspect | grep "Project ID" | awk '{print $NF}')
|
||||
if [ -n "$PROJECT_ID" ]; then
|
||||
echo "📜 Logging Radicle project ID to .gitfield/radicle.sigil.md"
|
||||
mkdir -p .gitfield
|
||||
echo "# Radicle Sigil" > .gitfield/radicle.sigil.md
|
||||
echo "**Project ID:** \`$PROJECT_ID\`" >> .gitfield/radicle.sigil.md
|
||||
fi
|
||||
|
||||
echo "✅ GitField resolution ritual complete."
|
Loading…
Add table
Add a link
Reference in a new issue